instance method
has_value?
Ruby on Rails 7.1.6
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 864
def has_value?(value)
each_value.include?(convert_value_to_parameters(value))
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 864
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters