Module: Rendition::ActionSupport::ClassMethods
- Defined in:
- lib/rendition/action_support.rb
Instance Method Summary collapse
- #expose_presenter(name, default_type = :default, &block) ⇒ Object
- #expose_presenters(name, default_type = :default, &block) ⇒ Object
Instance Method Details
#expose_presenter(name, default_type = :default, &block) ⇒ Object
9 10 11 |
# File 'lib/rendition/action_support.rb', line 9 def expose_presenter(name, default_type = :default, &block) _expose_presenter_or_presenters(:presenter, name, default_type, &block) end |
#expose_presenters(name, default_type = :default, &block) ⇒ Object
15 16 17 |
# File 'lib/rendition/action_support.rb', line 15 def expose_presenters(name, default_type = :default, &block) _expose_presenter_or_presenters(:presenters, name, default_type, &block) end |