class method
self.mailer_name
Ruby on Rails 7.2.3
Since v2.2.3Signature
self.mailer_name()
Returns the name of the current mailer. This method is also being used as a path for a view lookup. If this is an anonymous mailer, this method will return anonymous instead.
Source
# File actionmailer/lib/action_mailer/base.rb, line 570
def mailer_name
@mailer_name ||= anonymous? ? "anonymous" : name.underscore
end
Defined in actionmailer/lib/action_mailer/base.rb line 570
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Base