instance method _process_render_template_options

Ruby on Rails 8.0.4

Since v8.0.4 Private

Available in: v8.0.4 v8.1.2

Signature

_process_render_template_options(options)

Normalize options.

Parameters

options req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close