Sha256: d146638d44802dcc199a2480c9438ebee37a397e54ed61bdad7bc40de97af765

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

require "active_job"

module Transcript
  class Job < ActiveJob::Base
    queue_as :default

    def perform(actor, receiver, action)
      Transcript.configuration.audit_model.create(
        actor: actor,
        action: action,
        receiver: receiver,
        receiver_serialized: receiver,
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transcript-0.2.1 lib/transcript/job.rb
transcript-0.2.0 lib/transcript/job.rb
transcript-0.1.0 lib/transcript/job.rb