Class: Sunspot::Queue::Inline::Backend
- Inherits:
-
Object
- Object
- Sunspot::Queue::Inline::Backend
show all
- Includes:
- Helpers
- Defined in:
- lib/sunspot/queue/inline/backend.rb
Instance Method Summary
collapse
Methods included from Helpers
#constantize, #without_proxy
Instance Method Details
#index(klass, id) ⇒ Object
8
9
10
11
12
|
# File 'lib/sunspot/queue/inline/backend.rb', line 8
def index(klass, id)
without_proxy do
constantize(klass).find(id).solr_index
end
end
|
#remove(klass, id) ⇒ Object
14
15
16
17
18
|
# File 'lib/sunspot/queue/inline/backend.rb', line 14
def remove(klass, id)
without_proxy do
::Sunspot.remove_by_id(klass, id)
end
end
|