Class: ParamsReady::Query::In

Inherits:
PredicateOperator show all
Defined in:
lib/params_ready/query/predicate_operator.rb

Class Method Summary collapse

Methods inherited from PredicateOperator

#altn, define_operator, dup

Class Method Details

.test(record, attribute_name, values) ⇒ Object



56
57
58
59
# File 'lib/params_ready/query/predicate_operator.rb', line 56

def self.test(record, attribute_name, values)
  attribute = record.send attribute_name
  values.include? attribute
end