diff options
Diffstat (limited to 'lib/active_job/identifier.rb')
-rw-r--r-- | lib/active_job/identifier.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/active_job/identifier.rb b/lib/active_job/identifier.rb new file mode 100644 index 0000000000..af32b03404 --- /dev/null +++ b/lib/active_job/identifier.rb @@ -0,0 +1,16 @@ +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 |