Module: Ext::DelayedIndexing
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/models/ext/delayed_indexing.rb', line 6 def self.included(base) base.extend ClassMethods base.class_eval do handle_asynchronously :solr_index handle_asynchronously :solr_index! after_commit { Sunspot.delay.commit } end end |