instance method
params=
Ruby on Rails 6.0.6
Since v4.0.13Signature
params=(value)
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.
Parameters
-
valuereq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1105
def params=(value)
@_params = value.is_a?(Hash) ? Parameters.new(value) : value
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 1105
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::StrongParameters