Class: ParamsReady::Query::In
- Inherits:
-
PredicateOperator
- Object
- PredicateOperator
- ParamsReady::Query::In
- Defined in:
- lib/params_ready/query/predicate_operator.rb
Class Method Summary collapse
Methods inherited from PredicateOperator
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 |