Class: Effective::TableRows::BelongsTo
- Inherits:
-
Effective::TableRow
- Object
- Effective::TableRow
- Effective::TableRows::BelongsTo
- Defined in:
- app/models/effective/table_rows/belongs_to.rb
Instance Attribute Summary
Attributes inherited from Effective::TableRow
#builder, #name, #options, #template
Instance Method Summary collapse
Methods inherited from Effective::TableRow
#controller_namespace, #hint, #initialize, #label, #label_content, #to_html, #tr_class, #value
Constructor Details
This class inherits a constructor from Effective::TableRow
Instance Method Details
#content ⇒ Object
7 8 9 10 11 |
# File 'app/models/effective/table_rows/belongs_to.rb', line 7 def content if value.present? content_tag(:div) { link_to_edit || link_to_show || value.to_s } end end |