提交 58533dc9 编写于 作者: P Prem Sichanugrist

Add some documentation for AM.mailer_name

上级 0e8a3bc8
...@@ -412,6 +412,8 @@ def register_interceptor(interceptor) ...@@ -412,6 +412,8 @@ def register_interceptor(interceptor)
Mail.register_interceptor(delivery_interceptor) Mail.register_interceptor(delivery_interceptor)
end 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 def mailer_name
@mailer_name ||= anonymous? ? "anonymous" : name.underscore @mailer_name ||= anonymous? ? "anonymous" : name.underscore
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册