Class: MultipleMan::ModelPublisherJob
- Inherits:
-
Object
- Object
- MultipleMan::ModelPublisherJob
- 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, , operation) records = Kernel.const_get(record_type).where(id: ids) ModelPublisher.new().publish(records, operation) end |