Class: Arclight::ShowPresenter
- Inherits:
-
Blacklight::ShowPresenter
- Object
- Blacklight::ShowPresenter
- Arclight::ShowPresenter
- Defined in:
- app/presenters/arclight/show_presenter.rb
Overview
Custom presentation methods for show partial
Instance Attribute Summary collapse
-
#field_group ⇒ Object
Returns the value of attribute field_group.
Instance Method Summary collapse
Instance Attribute Details
#field_group ⇒ Object
Returns the value of attribute field_group.
6 7 8 |
# File 'app/presenters/arclight/show_presenter.rb', line 6 def field_group @field_group end |
Instance Method Details
#heading ⇒ Object
10 11 12 |
# File 'app/presenters/arclight/show_presenter.rb', line 10 def heading document.normalized_title end |
#with_field_group(group) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/presenters/arclight/show_presenter.rb', line 14 def with_field_group(group) if block_given? old_group = field_group begin self.field_group = group yield(self) ensure self.field_group = old_group if block_given? end else dup.tap { |x| x.field_group = group } end end |