Class: Searchkick::Where
- Inherits:
-
Object
- Object
- Searchkick::Where
- Defined in:
- lib/searchkick/where.rb
Instance Method Summary collapse
-
#initialize(relation) ⇒ Where
constructor
A new instance of Where.
- #not(value) ⇒ Object
Constructor Details
#initialize(relation) ⇒ Where
Returns a new instance of Where.
3 4 5 |
# File 'lib/searchkick/where.rb', line 3 def initialize(relation) @relation = relation end |
Instance Method Details
#not(value) ⇒ Object
7 8 9 |
# File 'lib/searchkick/where.rb', line 7 def not(value) @relation.where(_not: value) end |