Class: ActiveItem::WhereChain
- Inherits:
-
Object
- Object
- ActiveItem::WhereChain
- Defined in:
- lib/active_item/relation.rb
Overview
WhereChain enables the where.not(…) syntax Returns a Relation with negated conditions
Instance Method Summary collapse
-
#initialize(relation) ⇒ WhereChain
constructor
A new instance of WhereChain.
- #not(**conditions) ⇒ Object
Constructor Details
#initialize(relation) ⇒ WhereChain
Returns a new instance of WhereChain.
1802 1803 1804 |
# File 'lib/active_item/relation.rb', line 1802 def initialize(relation) @relation = relation end |
Instance Method Details
#not(**conditions) ⇒ Object
1806 1807 1808 |
# File 'lib/active_item/relation.rb', line 1806 def not(**conditions) @relation.not(**conditions) end |