debian-mirror-gitlab/debian/gems-compat/activejob-5.1.6.1/lib/active_job/translation.rb

11 lines
211 B
Ruby

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