Module | ThinkingSphinx::ActiveRecord::Delta |
In: |
lib/thinking_sphinx/active_record/delta.rb
|
This module contains all the delta-related code for models. There isn‘t really anything you need to call manually in here - except perhaps index_delta, but not sure what reason why.
Code for after_commit callback is written by Eli Miller: elimiller.blogspot.com/2007/06/proper-cache-expiry-with-aftercommit.html with slight modification from Joost Hietbrink.
Build the delta index for the related model. This won‘t be called if running in the test environment.