instance method _normalize_options

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

_normalize_options(options)

No documentation comment.

Parameters

options req
Source
# File actionpack/lib/abstract_controller/layouts.rb, line 285
    def _normalize_options(options)
      super

      if _include_layout?(options)
        layout = options.key?(:layout) ? options.delete(:layout) : :default
        value = _layout_for_option(layout)
        options[:layout] = (value =~ /\blayouts/ ? value : "layouts/#{value}") if value
      end
    end

Defined in actionpack/lib/abstract_controller/layouts.rb line 285 · View on GitHub · Improve this page · Find usages on GitHub

Defined in AbstractController::Layouts

Type at least 2 characters to search.

↑↓ navigate · open · esc close