Method: FileAttachmentsHelper#file_container_data

Defined in:
app/helpers/file_attachments_helper.rb

#file_container_data(file_attachment) ⇒ Object



22
23
24
25
26
27
28
29
# File 'app/helpers/file_attachments_helper.rb', line 22

def file_container_data(file_attachment)
  return unless has_authorization?(:update, file_attachment)
   :span, file_attachment.file_container, {
    :id => "file_attachment_#{file_attachment.id}_file_container",
    :class => "file_attachment_file_container",
    :style => "display:none;"
  }
end