We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f0be6 commit 93fd612Copy full SHA for 93fd612
1 file changed
app/mailers/application_mailer.rb
@@ -11,6 +11,7 @@ class ApplicationMailer < ActionMailer::Base
11
12
layout "mailer"
13
14
+ around_action :use_default_locale
15
after_deliver :record_delivery
16
17
def record_delivery
@@ -26,4 +27,10 @@ def record_delivery
26
27
mailer: mailer_name)
28
end
29
30
+
31
+ private
32
33
+ def use_default_locale(&block)
34
+ I18n.with_locale(I18n.default_locale, &block)
35
+ end
36
0 commit comments