module ChewyResque::Mixin::ClassMethods
Public Instance Methods
async_update_index(index, queue: nil, backref: :self, only_if: nil)
click to toggle source
# File lib/chewy_resque/mixin.rb, line 25 def async_update_index(index, queue: nil, backref: :self, only_if: nil) install_chewy_hooks if indexers.empty? # Only install them once indexers << ChewyResque::Index.new(index: index, queue: queue, backref: backref, only_if: only_if) end
install_chewy_hooks()
click to toggle source
# File lib/chewy_resque/mixin.rb, line 30 def install_chewy_hooks after_commit :queue_chewy_jobs end