Class: Chewy::Strategy::Resque::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/chewy/strategy/resque.rb

Class Method Summary collapse

Class Method Details

.perform(type, ids, options = {}) ⇒ Object



16
17
18
19
# File 'lib/chewy/strategy/resque.rb', line 16

def self.perform(type, ids, options = {})
  options[:refresh] = !Chewy.disable_refresh_async if Chewy.disable_refresh_async
  type.constantize.import!(ids, options)
end