Skip to content

Commit

Permalink
Specify locale in UserMailer
Browse files Browse the repository at this point in the history
  • Loading branch information
just806me committed Dec 6, 2023
1 parent 93ca198 commit 1de0127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class UserMailer < ApplicationMailer
def email user
@user = user
mail subject: t('.subject'), to: user.email
I18n.with_locale(:uk) { mail subject: t('.subject'), to: user.email }
end
end

0 comments on commit 1de0127

Please sign in to comment.