From 67ae8d7768d9a63ad847565f259a3e94523755ec Mon Sep 17 00:00:00 2001 From: ko Date: Sun, 21 Apr 2024 14:58:36 +0900 Subject: [PATCH] =?UTF-8?q?resize=E3=81=AE=E3=82=AA=E3=83=97=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=97=E3=81=A6?= =?UTF-8?q?=E4=BB=95=E6=A7=98=E3=81=AB=E6=BA=80=E3=81=9F=E3=81=99=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/work.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/work.rb b/app/models/work.rb index 1e3cac7db55..fb74c80e8f9 100644 --- a/app/models/work.rb +++ b/app/models/work.rb @@ -21,7 +21,7 @@ class Work < ApplicationRecord def thumbnail_url if thumbnail.attached? - thumbnail.variant(resize_to_limit: THUMBNAIL_SIZE).processed.url + thumbnail.variant(resize_to_fill: THUMBNAIL_SIZE).processed.url else image_url('/images/works/thumbnails/default.png') end