method
_normalize_options
v3.0.0 -
Show latest stable
- Class:
AbstractController::Rendering
_normalize_options(options)private
No documentation available.
# File actionpack/lib/abstract_controller/rendering.rb, line 153
def _normalize_options(options)
if options[:partial] == true
options[:partial] = action_name
end
if (options.keys & [:partial, :file, :template]).empty?
options[:prefix] ||= _prefix
end
options[:template] ||= (options[:action] || action_name).to_s
options
end