Sha256: aaf6dcbde94474f21cb69d537b98a600ef5f53d60615bec85d71a3d14dc8849a

Contents?: true

Size: 211 Bytes

Versions: 84

Compression:

Stored size: 211 Bytes

Contents

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

    included do
      around_perform do |job, block, _|
        I18n.with_locale(job.locale, &block)
      end
    end
  end
end

Version data entries

84 entries across 83 versions & 7 rubygems

Version Path
activejob-4.2.11.3 lib/active_job/translation.rb
activejob-4.2.11.2 lib/active_job/translation.rb
activejob-5.1.7 lib/active_job/translation.rb
activejob-5.1.7.rc1 lib/active_job/translation.rb
activejob-5.1.6.2 lib/active_job/translation.rb
activejob-5.0.7.2 lib/active_job/translation.rb
activejob-4.2.11.1 lib/active_job/translation.rb
activejob-5.1.6.1 lib/active_job/translation.rb
activejob-5.0.7.1 lib/active_job/translation.rb
activejob-4.2.11 lib/active_job/translation.rb
activejob-5.1.6 lib/active_job/translation.rb
activejob-5.0.7 lib/active_job/translation.rb
activejob-5.1.5 lib/active_job/translation.rb
activejob-5.1.5.rc1 lib/active_job/translation.rb
activejob-4.2.10 lib/active_job/translation.rb
activejob-4.2.10.rc1 lib/active_job/translation.rb
activejob-5.1.4 lib/active_job/translation.rb
activejob-5.0.6 lib/active_job/translation.rb
activejob-5.1.4.rc1 lib/active_job/translation.rb
activejob-5.0.6.rc1 lib/active_job/translation.rb