Method: ActionController::Parameters#has_value?
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
#has_value?(value) ⇒ Boolean Also known as: value?
Returns true if the given value is present for some key in the parameters.
997 998 999 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 997 def has_value?(value) each_value.include?(convert_value_to_parameters(value)) end |