Class: Bulletin::RecordJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/bulletin/record_job.rb

Overview

Drains a request’s normalized warning payload into the store off the request path. Self-contained (inherits ActiveJob::Base, not the host’s ApplicationJob) so the engine works regardless of the host’s job setup.

Instance Method Summary collapse

Instance Method Details

#perform(payload) ⇒ Object



10
11
12
# File 'app/jobs/bulletin/record_job.rb', line 10

def perform(payload)
  Bulletin.store.record(payload)
end