Class: Sunspot::Queue::Resque::IndexJob

Inherits:
Object
  • Object
show all
Extended by:
Helpers
Defined in:
lib/sunspot/queue/resque/index_job.rb

Class Method Summary collapse

Methods included from Helpers

constantize, without_proxy

Class Method Details

.perform(klass, id) ⇒ Object



11
12
13
14
15
# File 'lib/sunspot/queue/resque/index_job.rb', line 11

def self.perform(klass, id)
  without_proxy do
    constantize(klass).find(id).solr_index
  end
end

.queueObject



7
8
9
# File 'lib/sunspot/queue/resque/index_job.rb', line 7

def self.queue
  :sunspot
end