Moves attributes to a concern.
This commit is contained in:
8
app/controllers/concerns/image_attributes.rb
Normal file
8
app/controllers/concerns/image_attributes.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
module ImageAttributes
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def image_attributes
|
||||
[:id, :title, :attachment, :cached_attachment, :user_id, :_destroy]
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user