Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 698 Bytes
module LaMaquina
module Piston
class SunspotPiston < LaMaquina::Piston::Base
class << self
def fire!( notified_class, id, notifier_class = "" )
target_class = map.find notified_class
target = target_class.find(id)
target.solr_index!
rescue => e
LaMaquina.error_notifier.notify( e,
notified_class: klass,
notified_id: id,
notifier_class: notifier_class )
end
attr_accessor :map
end
self.map = LaMaquina::DependencyMap::ConstantMap.new
end
end
end