Sha256: d704f538e6f21a32bc33dd8f61e200c341f9469d484c5bdc298a194d8b4b4829

Contents?: true

Size: 242 Bytes

Versions: 33

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

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

33 entries across 33 versions & 3 rubygems

Version Path
activejob-5.2.8.1 lib/active_job/translation.rb
activejob-5.2.8 lib/active_job/translation.rb
activejob-5.2.7.1 lib/active_job/translation.rb
activejob-5.2.7 lib/active_job/translation.rb
activejob-5.2.6.3 lib/active_job/translation.rb
activejob-5.2.6.2 lib/active_job/translation.rb
activejob-5.2.6.1 lib/active_job/translation.rb
activejob-5.2.6 lib/active_job/translation.rb
activejob-5.2.4.6 lib/active_job/translation.rb
activejob-5.2.5 lib/active_job/translation.rb
activejob-5.2.4.5 lib/active_job/translation.rb
activejob-5.2.4.4 lib/active_job/translation.rb
activejob-5.2.4.3 lib/active_job/translation.rb
activejob-5.2.4.2 lib/active_job/translation.rb
activejob-5.2.4.1 lib/active_job/translation.rb
activejob-5.2.4 lib/active_job/translation.rb
activejob-5.2.4.rc1 lib/active_job/translation.rb
spiral_form-0.1.1 vendor/bundle/gems/activejob-5.2.3/lib/active_job/translation.rb
spiral_form-0.1.0 vendor/bundle/gems/activejob-5.2.3/lib/active_job/translation.rb
activejob-5.2.3 lib/active_job/translation.rb