instance method
_process_render_template_options
Ruby on Rails edge
Since v8.0.5.1 Private — implementation detail, not part of the public APISignature
_process_render_template_options(options)
Normalize options.
Parameters
-
optionsreq
Source
# File actionview/lib/action_view/rendering.rb, line 179
def _process_render_template_options(options)
if options[:partial] == true
options[:partial] = action_name
end
if !options.keys.intersect?([:partial, :file, :template])
options[:prefixes] ||= _prefixes
end
options[:template] ||= (options[:action] || action_name).to_s
end
Defined in actionview/lib/action_view/rendering.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Rendering