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/action_controller/metal/compatibility.rb, line 41
    def _normalize_options(options)
      if options[:action] && options[:action].to_s.include?(?/)
        ActiveSupport::Deprecation.warn "Giving a path to render :action is deprecated. " <<
          "Please use render :template instead", caller
        options[:template] = options.delete(:action)
      end

      options[:text] = nil if options.delete(:nothing) == true
      options[:text] = " " if options.key?(:text) && options[:text].nil?
      super
    end

Defined in actionpack/lib/action_controller/metal/compatibility.rb line 41 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Compatibility

Type at least 2 characters to search.

↑↓ navigate · open · esc close