Permalink
Browse files

Add some documentation for AM.mailer_name

  • Loading branch information...
sikachu committed May 3, 2013
1 parent 0e8a3bc commit 58533dc9bd8736c28b5ad8286e57b02f45939621
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionmailer/lib/action_mailer/base.rb
@@ -412,6 +412,8 @@ def register_interceptor(interceptor)
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

0 comments on commit 58533dc

Please sign in to comment.