Class: ThinkingSphinx::RealTime::Callbacks::RealTimeCallbacks

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb

Instance Method Summary collapse

Constructor Details

#initialize(reference, path = [], &block) ⇒ RealTimeCallbacks

Returns a new instance of RealTimeCallbacks.



4
5
6
# File 'lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb', line 4

def initialize(reference, path = [], &block)
  @reference, @path, @block = reference, path, block
end

Instance Method Details

#after_commit(instance) ⇒ Object



8
9
10
# File 'lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb', line 8

def after_commit(instance)
  persist_changes instance
end

#after_save(instance) ⇒ Object



12
13
14
# File 'lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb', line 12

def after_save(instance)
  persist_changes instance
end