diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-05-13 14:21:00 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-05-13 14:21:00 +0300 |
commit | c17d200e3f1b86219c0e12809e93e8943dfa325a (patch) | |
tree | 71bcd84a8f8090c118772de75a245b9972f35ab0 /actionmailer/lib/action_mailer | |
parent | 7d67880a2d680a5edf85157569f7da20c52f15c4 (diff) | |
download | rails-c17d200e3f1b86219c0e12809e93e8943dfa325a.tar.gz rails-c17d200e3f1b86219c0e12809e93e8943dfa325a.tar.bz2 rails-c17d200e3f1b86219c0e12809e93e8943dfa325a.zip |
mailer can be anonymous
closes #5970
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index e24a7f52d5..4f0cff0612 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -3,6 +3,7 @@ require 'action_mailer/collector' require 'active_support/core_ext/object/blank' require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/hash/except' +require 'active_support/core_ext/module/anonymous' require 'action_mailer/log_subscriber' module ActionMailer #:nodoc: @@ -401,7 +402,7 @@ module ActionMailer #:nodoc: end def mailer_name - @mailer_name ||= name.underscore + @mailer_name ||= anonymous? ? "anonymous" : name.underscore end attr_writer :mailer_name alias :controller_path :mailer_name |