spec/internal/app/models/product.rb in thinking-sphinx-4.4.1 vs spec/internal/app/models/product.rb in thinking-sphinx-5.0.0
- old
+ new
@@ -2,7 +2,7 @@
class Product < ActiveRecord::Base
has_many :categorisations
has_many :categories, :through => :categorisations
- after_save ThinkingSphinx::RealTime.callback_for(:product)
+ ThinkingSphinx::Callbacks.append(self, :behaviours => [:real_time])
end