From 58533dc9bd8736c28b5ad8286e57b02f45939621 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Fri, 3 May 2013 13:33:10 -0400 Subject: Add some documentation for AM.mailer_name --- actionmailer/lib/action_mailer/base.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionmailer/lib') 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 -- cgit v1.2.3