Class: FrozenRecord::Scope::WhereChain

Inherits:
Object
  • Object
show all
Defined in:
lib/frozen_record/scope.rb

Instance Method Summary collapse

Constructor Details

#initialize(scope) ⇒ WhereChain

Returns a new instance of WhereChain.



18
19
20
# File 'lib/frozen_record/scope.rb', line 18

def initialize(scope)
  @scope = scope
end

Instance Method Details

#not(criterias) ⇒ Object



22
23
24
# File 'lib/frozen_record/scope.rb', line 22

def not(criterias)
  @scope.where_not(criterias)
end