instance method
has_value?
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
has_value?(value)
Returns true if the given value is present for some key in the parameters.
Parameters
-
valuereq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 997
def has_value?(value)
each_value.include?(convert_value_to_parameters(value))
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 997
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters