Class: Lyra::Projections::CachedRelation::WhereChain

Inherits:
Object
  • Object
show all
Defined in:
lib/lyra/projections/cached_relation.rb

Overview

=========================================================================

WhereChain for where.not(...) support

Instance Method Summary collapse

Constructor Details

#initialize(relation) ⇒ WhereChain

Returns a new instance of WhereChain.



737
738
739
# File 'lib/lyra/projections/cached_relation.rb', line 737

def initialize(relation)
  @relation = relation
end

Instance Method Details

#associated(*associations) ⇒ Object



750
751
752
753
# File 'lib/lyra/projections/cached_relation.rb', line 750

def associated(*associations)
  # Can't check associations in cached mode
  @relation
end

#missing(*associations) ⇒ Object



745
746
747
748
# File 'lib/lyra/projections/cached_relation.rb', line 745

def missing(*associations)
  # Can't check missing associations in cached mode
  @relation
end

#not(conditions) ⇒ Object



741
742
743
# File 'lib/lyra/projections/cached_relation.rb', line 741

def not(conditions)
  @relation.not(conditions)
end