Class: ThinkingSphinx::ActiveRecord::Callbacks::DeleteCallbacks

Inherits:
Callbacks
  • Object
show all
Defined in:
lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb

Instance Attribute Summary

Attributes inherited from Callbacks

#instance

Instance Method Summary collapse

Methods inherited from Callbacks

append, callbacks, #initialize, resume!, suspend, suspend!, suspended?

Constructor Details

This class inherits a constructor from ThinkingSphinx::Callbacks

Instance Method Details

#after_commitObject



8
9
10
# File 'lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb', line 8

def after_commit
  delete_from_sphinx
end

#after_destroyObject



12
13
14
# File 'lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb', line 12

def after_destroy
  delete_from_sphinx
end

#after_rollbackObject



16
17
18
# File 'lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb', line 16

def after_rollback
  delete_from_sphinx
end