Class ActionMailer::Base
In: vendor/plugins/globalize/lib/globalize/rails/action_mailer.rb
Parent: Object

Globalize overrides the create! method to support multiple templates for different locales. For example, for English it will select the template:

  signup_notification.en-US.text.html.rhtml

It will look for the currently active locale code (en-US) first, then the language code (en).

If neither of those are found, it will use the regular name:

  signup_notification.text.html.rhtml

It is fully backwards compatible with the original Rails version.

[Validate]