Module: Rendition::ActionSupport::ClassMethods

Defined in:
lib/rendition/action_support.rb

Instance Method Summary collapse

Instance Method Details

#expose_presenter(name, default_type = :default, &block) ⇒ Object

Parameters:

  • name (Symbol)
  • block (Block)


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

Parameters:

  • name (Symbol)
  • block (Block)


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