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-5.1.3 lib/active_job/translation.rb
activejob-5.1.3.rc3 lib/active_job/translation.rb
activejob-5.0.5 lib/active_job/translation.rb
activejob-5.0.5.rc2 lib/active_job/translation.rb
activejob-5.1.3.rc2 lib/active_job/translation.rb
activejob-5.0.5.rc1 lib/active_job/translation.rb
activejob-5.1.3.rc1 lib/active_job/translation.rb
activejob-5.1.2 lib/active_job/translation.rb
activejob-4.2.9 lib/active_job/translation.rb
activejob-5.1.2.rc1 lib/active_job/translation.rb
activejob-4.2.9.rc2 lib/active_job/translation.rb
activejob-5.0.4 lib/active_job/translation.rb
activejob-5.0.4.rc1 lib/active_job/translation.rb
activejob-4.2.9.rc1 lib/active_job/translation.rb
activejob-5.1.1 lib/active_job/translation.rb
activejob-5.0.3 lib/active_job/translation.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activejob-5.0.2/lib/active_job/translation.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activejob-4.2.8/lib/active_job/translation.rb
activejob-5.1.0 lib/active_job/translation.rb
activejob-5.1.0.rc2 lib/active_job/translation.rb