chore: Upgrade to Rails 7 (#6719)

fixes: #6736
This commit is contained in:
Sojan Jose
2023-05-06 10:44:52 +05:30
committed by GitHub
parent 59433d9d3c
commit 022383d942
53 changed files with 1696 additions and 682 deletions

View File

@@ -62,7 +62,7 @@ class Attachment < ApplicationRecord
def thumb_url
if file.attached? && file.representable?
url_for(file.representation(resize: '250x250'))
url_for(file.representation(resize_to_fill: [250, nil]))
else
''
end