Module: Modular::ActionControllerExtension::ClassMethods

Defined in:
lib/modular/action_controller_extension.rb

Instance Method Summary collapse

Instance Method Details

#modular_layout(name) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/modular/action_controller_extension.rb', line 21

def modular_layout(name)
  proc = Proc.new do |controller|
    controller.send(:get_layout_path, name)
  end
  
  layout proc
end