Class: Workarea::PublishBulkAction

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

Instance Method Summary collapse

Instance Method Details

#perform(id) ⇒ Object



7
8
9
10
11
12
# File 'app/workers/workarea/publish_bulk_action.rb', line 7

def perform(id)
  update = BulkAction.find(id)
  update.perform!
ensure
  update.completed!
end