class ThinkingSphinx::ActiveRecord::Callbacks::DeleteCallbacks
Public Instance Methods
after_destroy()
click to toggle source
# File lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb, line 6 def after_destroy return if instance.new_record? indices.each { |index| ThinkingSphinx::Deletion.perform index, instance.id } end
Private Instance Methods
indices()
click to toggle source
# File lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb, line 16 def indices ThinkingSphinx::IndexSet.new([instance.class], []).to_a end