Class: ThinkingSphinx::ActiveRecord::Callbacks::UpdateCallbacks
- Inherits:
-
Callbacks
- Object
- Callbacks
- ThinkingSphinx::ActiveRecord::Callbacks::UpdateCallbacks
- Defined in:
- lib/thinking_sphinx/active_record/callbacks/update_callbacks.rb
Constant Summary collapse
- CHANGED_ATTRIBUTES =
lambda { |instance| instance.changed }
Instance Attribute Summary
Attributes inherited from Callbacks
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_update ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/thinking_sphinx/active_record/callbacks/update_callbacks.rb', line 14 def after_update return unless !ThinkingSphinx::Callbacks.suspended? && updates_enabled? indices.each do |index| update index unless index.distributed? end end |