Move document attributes to concern

This commit is contained in:
taitus
2021-04-09 11:27:00 +02:00
parent 82cd019b40
commit ac144d172d
8 changed files with 21 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
module DocumentAttributes
extend ActiveSupport::Concern
def document_attributes
[:id, :title, :attachment, :cached_attachment, :user_id, :_destroy]
end
end