aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/translation.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-02-22 18:08:23 -0500
committerGitHub <noreply@github.com>2018-02-22 18:08:23 -0500
commit5aa605f5cb5c15a0fa906463eb4afcaebe7c7796 (patch)
tree18dcb8781dad5ec75238ad43660abfc0ba9436ea /activejob/lib/active_job/translation.rb
parentae01c921fb12021e46407f6d17ff68528156017d (diff)
parent6a1e7292bc3dbf9963c9aa8de75662ce1496a7c7 (diff)
downloadrails-5aa605f5cb5c15a0fa906463eb4afcaebe7c7796.tar.gz
rails-5aa605f5cb5c15a0fa906463eb4afcaebe7c7796.tar.bz2
rails-5aa605f5cb5c15a0fa906463eb4afcaebe7c7796.zip
Merge pull request #32090 from bogdanvlviv/remove-passing-extra-arguments-to-active-job-callbacks
Remove passing extra arguments to ActiveJob Callbacks
Diffstat (limited to 'activejob/lib/active_job/translation.rb')
-rw-r--r--activejob/lib/active_job/translation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/translation.rb b/activejob/lib/active_job/translation.rb
index fb45c80d67..0fd9b9fc06 100644
--- a/activejob/lib/active_job/translation.rb
+++ b/activejob/lib/active_job/translation.rb
@@ -5,7 +5,7 @@ module ActiveJob
extend ActiveSupport::Concern
included do
- around_perform do |job, block, _|
+ around_perform do |job, block|
I18n.with_locale(job.locale, &block)
end
end