instance method
_process_render_template_options
Ruby on Rails 8.1.2
Since v8.0.4 PrivateAvailable in: v8.0.4 v8.1.2
Signature
_process_render_template_options(options)
Normalize options.
Parameters
-
optionsreq
Source
# File actionview/lib/action_view/rendering.rb, line 177
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 177
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Rendering