Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
initialize_defaults(method_name)
protected
Set up the default values for the various instance variables of this
mailer. Subclasses may override this method to provide different defaults.
# File actionmailer/lib/action_mailer/old_api.rb, line 182
def initialize_defaults(method_name)
@charset ||= self.class.default[:charset].try(:dup)
@content_type ||= self.class.default[:content_type].try(:dup)
@implicit_parts_order ||= self.class.default[:parts_order].try(:dup)
@mime_version ||= self.class.default[:mime_version].try(:dup)
@cc, @bcc, @reply_to, @subject, @from, @recipients = nil, nil, nil, nil, nil, nil
@mailer_name ||= self.class.mailer_name.dup
@template ||= method_name
@mail_was_called = false
@parts ||= []
@headers ||= {}
@sent_on ||= Time.now
@body ||= {}
end