mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 13:49:39 +02:00
Updated "small" image variant for retina
This commit is contained in:
parent
f63aea7f87
commit
a1065fde83
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class User < ApplicationRecord
|
||||||
|
|
||||||
has_one_attached :profile_image do |attachable|
|
has_one_attached :profile_image do |attachable|
|
||||||
attachable.variant :thumbnail, resize_to_fill: [ 300, 300 ], convert: :webp, saver: { quality: 80 }
|
attachable.variant :thumbnail, resize_to_fill: [ 300, 300 ], convert: :webp, saver: { quality: 80 }
|
||||||
attachable.variant :small, resize_to_fill: [ 36, 36 ], convert: :webp, saver: { quality: 80 }
|
attachable.variant :small, resize_to_fill: [ 72, 72 ], convert: :webp, saver: { quality: 80 }
|
||||||
end
|
end
|
||||||
|
|
||||||
validate :profile_image_size
|
validate :profile_image_size
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue