diff options
author | Olek Janiszewski <olek.janiszewski@gmail.com> | 2013-01-23 19:22:39 +0100 |
---|---|---|
committer | Olek Janiszewski <olek.janiszewski@gmail.com> | 2013-01-24 15:29:24 +0100 |
commit | 57bfbc249e2af753163788d07ac7a658b4f5484a (patch) | |
tree | d3ee35a6083d7b3cd393dd8ff2e818031799f792 /activerecord/lib/active_record/dynamic_matchers.rb | |
parent | 1b75b94de6d474d56a6c47e74bdbd985ec14087b (diff) | |
download | rails-57bfbc249e2af753163788d07ac7a658b4f5484a.tar.gz rails-57bfbc249e2af753163788d07ac7a658b4f5484a.tar.bz2 rails-57bfbc249e2af753163788d07ac7a658b4f5484a.zip |
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
Diffstat (limited to 'activerecord/lib/active_record/dynamic_matchers.rb')
0 files changed, 0 insertions, 0 deletions