class method
self.new
Ruby on Rails 5.1.7
Since v3.0.20Signature
self.new()
Instantiate a new mailer object. If method_name is not nil, the mailer will be initialized according to the named method. If not, the mailer will remain uninitialized (useful when you only need to invoke the “receive” method, for instance).
Source
# File actionmailer/lib/action_mailer/base.rb, line 595
def initialize
super()
@_mail_was_called = false
@_message = Mail.new
end
Defined in actionmailer/lib/action_mailer/base.rb line 595
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Base