1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test/mailers
Olek Janiszewski 57bfbc249e Allow passing interpolations to #default_i18n_subject, e.g.:
# config/locales/en.yml
    en:
      user_mailer:
        welcome:
          subject: 'Hello, %{username}'

    # app/mailers/user_mailer.rb
    class UserMailer < ActionMailer::Base
      def welcome(user)
        mail(subject: default_i18n_subject(username: user.name))
      end
    end
2013-01-24 15:29:24 +01:00
..
asset_mailer.rb
base_mailer.rb Allow passing interpolations to #default_i18n_subject, e.g.: 2013-01-24 15:29:24 +01:00
proc_mailer.rb Update actionmailer with new hash syntax. 2012-10-07 21:54:14 +04:00