instance method
_normalize_options
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
_normalize_options(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File actionpack/lib/abstract_controller/layouts.rb, line 285
def _normalize_options(options)
super
if _include_layout?(options)
layout = options.key?(:layout) ? options.delete(:layout) : :default
value = _layout_for_option(layout)
options[:layout] = (value =~ /\blayouts/ ? value : "layouts/#{value}") if value
end
end
Defined in actionpack/lib/abstract_controller/layouts.rb line 285
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Layouts