instance method
_normalize_options
Ruby on Rails 5.2.8.1
Since v4.1.16 Last seen in v7.2.3 PrivateSignature
_normalize_options(options)
Normalize options.
Parameters
-
optionsreq
Source
# File actionview/lib/action_view/rendering.rb, line 137
def _normalize_options(options)
options = super(options)
if options[:partial] == true
options[:partial] = action_name
end
if (options.keys & [:partial, :file, :template]).empty?
options[:prefixes] ||= _prefixes
end
options[:template] ||= (options[:action] || action_name).to_s
options
end
Defined in actionview/lib/action_view/rendering.rb line 137
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Rendering