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.



12
13
14
# File 'lib/frozen_record/scope.rb', line 12

def initialize(scope)
  @scope = scope
end

Instance Method Details

#not(criterias) ⇒ Object



16
17
18
# File 'lib/frozen_record/scope.rb', line 16

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