class ActionController::Parameters

def has_value?(value)

Returns true if the given value is present for some key in the parameters.
def has_value?(value)
  each_value.include?(convert_value_to_parameters(value))
end