Flowdock
method

_normalize_options

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActionController::Compatibility
_normalize_options(options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.