- Devise and localized own mail template
- class LocalizedDeviseMailer < Devise::Mailer
- def confirmation_instructions(record, locale)
- @locale = locale
- super
- end
- end
- I18n.locale = @locale
- t("it.really.works")
- # Setup a subject doing an I18n lookup. At first, it attemps to set a subject
- # based on the current mapping:
- #
- # en:
- # devise:
- # mailer:
- # confirmation_instructions:
- # user_subject: '...'
- #