Moves attributes to a concern.

This commit is contained in:
rogelio-o
2019-01-14 20:26:47 +01:00
parent ea76179002
commit f1bb1ff8de
8 changed files with 14 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
module ImageAttributes
extend ActiveSupport::Concern
def image_attributes
[:id, :title, :attachment, :cached_attachment, :user_id, :_destroy]
end
end