Method: ActionController::StrongParameters#params=
- Defined in:
- actionpack/lib/action_controller/metal/strong_parameters.rb
#params=(value) ⇒ Object
Assigns the given value to the params hash. If value is a Hash, this will create an ActionController::Parameters object that has been instantiated with the given value hash.
1341 1342 1343 |
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 1341 def params=(value) @_params = value.is_a?(Hash) ? Parameters.new(value) : value end |