method
pick_layout
v2.1.0 -
Show latest stable
- Class:
ActionController::Layout
pick_layout(template_with_options, options)private
No documentation available.
# File actionpack/lib/action_controller/layout.rb, line 276
def pick_layout(template_with_options, options)
if template_with_options
case layout = options[:layout]
when FalseClass
nil
when NilClass, TrueClass
active_layout if action_has_layout?
else
active_layout(layout)
end
else
active_layout if action_has_layout?
end
end