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.
1529 1530 1531 |
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 1529 def params=(value) @_params = value.is_a?(Hash) ? Parameters.new(value) : value end |