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.



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

def initialize(scope)
  @scope = scope
end

Instance Method Details

#not(criterias) ⇒ Object



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

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