Class: Pluckr::Relation::WhereChain
- Inherits:
-
Object
- Object
- Pluckr::Relation::WhereChain
- Defined in:
- lib/pluckr/relation.rb
Overview
Mirrors ActiveRecord::QueryMethods::WhereChain for the operations Pluckr supports on the root relation.
Instance Method Summary collapse
-
#initialize(pluckr_relation) ⇒ WhereChain
constructor
A new instance of WhereChain.
- #not ⇒ Object
Constructor Details
#initialize(pluckr_relation) ⇒ WhereChain
Returns a new instance of WhereChain.
231 232 233 |
# File 'lib/pluckr/relation.rb', line 231 def initialize(pluckr_relation) @pluckr_relation = pluckr_relation end |
Instance Method Details
#not ⇒ Object
235 236 237 |
# File 'lib/pluckr/relation.rb', line 235 def not(...) @pluckr_relation.spawn(@pluckr_relation.relation.where.not(...)) end |