Module: Rendition::ActionSupport
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rendition/action_support.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #presenter(type = :default, model = nil, attributes = {}, &block) ⇒ Object
- #presenters(type = :default, models = nil, attributes = {}, &block) ⇒ Object
Instance Method Details
#presenter(type = :default, model = nil, attributes = {}, &block) ⇒ Object
46 47 48 |
# File 'lib/rendition/action_support.rb', line 46 def presenter(type = :default, model = nil, attributes = {}, &block) Rendition::Presenter.presenter(self.view_context, type, model, attributes, &block) end |
#presenters(type = :default, models = nil, attributes = {}, &block) ⇒ Object
50 51 52 |
# File 'lib/rendition/action_support.rb', line 50 def presenters(type = :default, models = nil, attributes = {}, &block) Rendition::Presenter.presenters(self.view_context, type, models, attributes, &block) end |