Extract ajax upload and destroy_upload actions from images and documents controllers and place them at new controllers to manage direct uploads
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
module DocumentsHelper
|
||||
|
||||
def document_note(document)
|
||||
t "documents.new.#{document.documentable.class.name.parameterize.underscore}.note",
|
||||
title: document.documentable.title
|
||||
end
|
||||
|
||||
def document_attachment_file_name(document)
|
||||
document.attachment_file_name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user