Sha256: 64451e6e5b5d7cc7462f8a9ca01969465b8f168c134da01a9a819732e5c50aa6

Contents?: true

Size: 236 Bytes

Versions: 76

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

module ActiveJob
  module Timezones #:nodoc:
    extend ActiveSupport::Concern

    included do
      around_perform do |job, block|
        Time.use_zone(job.timezone, &block)
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 7 rubygems

Version Path
activejob-6.1.7.10 lib/active_job/timezones.rb
activejob-6.1.7.9 lib/active_job/timezones.rb
activejob-6.1.7.8 lib/active_job/timezones.rb
activejob-6.1.7.7 lib/active_job/timezones.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activejob-6.1.6.1/lib/active_job/timezones.rb
activejob-6.1.7.6 lib/active_job/timezones.rb
activejob-6.1.7.5 lib/active_job/timezones.rb
activejob-6.1.7.4 lib/active_job/timezones.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activejob-6.1.6.1/lib/active_job/timezones.rb
activejob-6.1.7.3 lib/active_job/timezones.rb
activejob-6.1.7.2 lib/active_job/timezones.rb
activejob-6.1.7.1 lib/active_job/timezones.rb
activejob-6.0.6.1 lib/active_job/timezones.rb
activejob-6.1.7 lib/active_job/timezones.rb
activejob-6.0.6 lib/active_job/timezones.rb
activejob-6.1.6.1 lib/active_job/timezones.rb
activejob-6.0.5.1 lib/active_job/timezones.rb
activejob-6.0.5 lib/active_job/timezones.rb
activejob-6.1.6 lib/active_job/timezones.rb
activejob-6.1.5.1 lib/active_job/timezones.rb