Module: Garnish::Presenter

Extended by:
ActiveSupport::Concern
Defined in:
lib/garnish/presenter.rb,
lib/garnish/presenter/relationships.rb

Defined Under Namespace

Modules: ClassMethods, Relationships

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (protected)



17
18
19
# File 'lib/garnish/presenter.rb', line 17

def method_missing(method, *args, &block)
  self.template.send(method, *args, &block) unless @template.blank?
end