Class: MultipleMan::ModelPublisherJob

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/multiple_man_sidekiq/async_model_publisher.rb

Instance Method Summary collapse

Instance Method Details

#perform(record_type, ids, options, operation) ⇒ Object


34
35
36
37
# File 'lib/multiple_man_sidekiq/async_model_publisher.rb', line 34

def perform(record_type, ids, options, operation)
  records = Kernel.const_get(record_type).where(id: ids)
  ModelPublisher.new(options).publish(records, operation)
end