aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/identifier.rb
blob: c7f522087db0508c119ff7a73cb5b71e21c673cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'active_job/arguments'

module ActiveJob
  module Identifier
    extend ActiveSupport::Concern

    included do
      attr_writer :job_id
    end

    def job_id
      @job_id ||= SecureRandom.uuid
    end
  end
end