Class: RailsWorkflow::OperationWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/rails_workflow/operation_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(operation_id) ⇒ Object



5
6
7
8
# File 'app/workers/rails_workflow/operation_worker.rb', line 5

def perform(operation_id)
  operation = Operation.find operation_id
  operation.execute_in_transaction
end