debian-mirror-gitlab/debian/gems-compat/activejob-5.1.7/lib/active_job/translation.rb
2019-08-02 22:44:51 +05:30

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