Method: ActionController::Compatibility#_normalize_options
- Defined in:
- lib/action_controller/metal/compatibility.rb
#_normalize_options(options) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/action_controller/metal/compatibility.rb', line 41 def () if [:action] && [:action].to_s.include?(?/) ActiveSupport::Deprecation.warn "Giving a path to render :action is deprecated. " << "Please use render :template instead", caller [:template] = .delete(:action) end [:text] = nil if .delete(:nothing) == true [:text] = " " if .key?(:text) && [:text].nil? super end |