2018-02-22 09:14:42 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ActiveJob
|
|
|
|
module Timezones #:nodoc:
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
included do
|
2018-02-22 17:58:00 -05:00
|
|
|
around_perform do |job, block|
|
2018-02-22 09:14:42 -05:00
|
|
|
Time.use_zone(job.timezone, &block)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|