Module: ControllerHelper::ClassMethods

Defined in:
app/helpers/kit/controller_helper.rb

Defined Under Namespace

Classes: Partials

Instance Method Summary collapse

Instance Method Details

#partials(&block) ⇒ Object



68
69
70
71
72
73
74
# File 'app/helpers/kit/controller_helper.rb', line 68

def partials &block
  if block
    partials.instance_eval &block
  else
    @partials ||= ::Helpers::Kit::ControllerHelper::ClassMethods::Partials.new self
  end
end