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