Method: FileAttachmentsHelper#description_display

Defined in:
app/helpers/file_attachments_helper.rb

#description_display(file_attachment) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/helpers/file_attachments_helper.rb', line 3

def description_display(file_attachment)
  return unless has_authorization?(:read, file_attachment)
   :p, {
    :id => "file_attachment_#{file_attachment.id}_description",
    :class => 'file_attachment_description'
  } do
    file_attachment.description
  end
end