Class: AdminAssistant::PaperclipColumn::View

Inherits:
Column::View show all
Defined in:
lib/admin_assistant/paperclip_column.rb

Direct Known Subclasses

FormView, IndexView, ShowView

Instance Attribute Summary

Attributes inherited from Column::View

#sort_order

Instance Method Summary collapse

Methods inherited from Column::View

#check_box_and_hidden_tags, #controller, #custom_template_file_path, #file_option_for_custom_template_render, #initialize, #label, #name, #paperclip?, #sort_possible?, #string, #value

Constructor Details

This class inherits a constructor from AdminAssistant::Column::View

Instance Method Details

#image_html(record) ⇒ Object


16
17
18
# File 'lib/admin_assistant/paperclip_column.rb', line 16

def image_html(record)
  @action_view.image_tag record.send(@column.name).url
end