Class: FrozenRecord::Scope::WhereChain
- Inherits:
-
Object
- Object
- FrozenRecord::Scope::WhereChain
- Defined in:
- lib/frozen_record/scope.rb
Instance Method Summary collapse
-
#initialize(scope) ⇒ WhereChain
constructor
A new instance of WhereChain.
- #not(criterias) ⇒ Object
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 |