diff options
author | Prem Sichanugrist <s@sikac.hu> | 2013-05-03 13:33:10 -0400 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2013-05-03 13:33:10 -0400 |
commit | 58533dc9bd8736c28b5ad8286e57b02f45939621 (patch) | |
tree | a681b575be6e94a99fcd0f8982ae8dbb60af8914 /actionmailer/lib | |
parent | 0e8a3bc8ae8f462b54e088778b604b3fbdb32c53 (diff) | |
download | rails-58533dc9bd8736c28b5ad8286e57b02f45939621.tar.gz rails-58533dc9bd8736c28b5ad8286e57b02f45939621.tar.bz2 rails-58533dc9bd8736c28b5ad8286e57b02f45939621.zip |
Add some documentation for AM.mailer_name
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 1fff958ceb..91b03f28de 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -412,6 +412,8 @@ module ActionMailer Mail.register_interceptor(delivery_interceptor) end + # Returns the name of current mailer. This method also being used as a path for a view lookup. + # If this is an anonymous mailer, this method will return +anonymous+ instead. def mailer_name @mailer_name ||= anonymous? ? "anonymous" : name.underscore end |