Module: Admin::PageAttachmentsHelper
- Defined in:
- app/helpers/admin/page_attachments_helper.rb
Instance Method Summary collapse
Instance Method Details
#preview_path(attachment) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'app/helpers/admin/page_attachments_helper.rb', line 2 def preview_path() case .filename when /pdf$/ = '/images/admin/page_attachments/pdf-icon.png' else = .public_filename end end |