Module: Chewy::Index::Observe::ActiveRecordMethods

Extended by:
ActiveSupport::Concern
Defined in:
lib/chewy/index/observe/active_record_methods.rb

Instance Method Summary collapse

Instance Method Details

#run_chewy_callbacksObject



51
52
53
# File 'lib/chewy/index/observe/active_record_methods.rb', line 51

def run_chewy_callbacks
  chewy_callbacks.each { |callback| callback.call(self) }
end

#update_chewy_indicesObject



55
56
57
# File 'lib/chewy/index/observe/active_record_methods.rb', line 55

def update_chewy_indices
  Chewy.strategy.current.update_chewy_indices(self)
end