This commit is contained in:
7
app/models/picture.rb
Normal file
7
app/models/picture.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Picture < ApplicationRecord
|
||||
include Leafable
|
||||
|
||||
has_one_attached :image do |attachable|
|
||||
attachable.variant :large, resize_to_limit: [ 1500, 1500 ]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user