Class: PassiveRecord::Core::NegatedQuery
- Defined in:
- lib/passive_record/core/query.rb
Instance Attribute Summary
Attributes inherited from Query
Instance Method Summary collapse
Methods inherited from Query
#all, #and, #basic?, #conjoined?, #create, #disjoined?, #each, #evaluate_condition, #evaluate_nested_conditions, #first_or_create, #initialize, #method_missing, #not, #or, #raw_all, #where
Methods included from ArithmeticHelpers
Constructor Details
This class inherits a constructor from PassiveRecord::Core::Query
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PassiveRecord::Core::Query
Instance Method Details
#matching_instances(instance) ⇒ Object
145 146 147 148 149 |
# File 'lib/passive_record/core/query.rb', line 145 def matching_instances(instance) @conditions.none? do |(field,value)| evaluate_condition(instance, field, value) end end |
#negated? ⇒ Boolean
151 152 153 |
# File 'lib/passive_record/core/query.rb', line 151 def negated? true end |