Class: Pluckr::Relation::WhereChain

Inherits:
Object
  • Object
show all
Defined in:
lib/pluckr/relation.rb

Overview

Mirrors ActiveRecord::QueryMethods::WhereChain for the operations Pluckr supports on the root relation.

Instance Method Summary collapse

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

#notObject



235
236
237
# File 'lib/pluckr/relation.rb', line 235

def not(...)
  @pluckr_relation.spawn(@pluckr_relation.relation.where.not(...))
end