Set up the default values for the various instance variables of this mailer. Subclasses may override this method to provide different defaults.
Source Code
# File action_mailer/base.rb, line 481 def initialize_defaults(method_name) @charset ||= @@default_charset.dup @content_type ||= @@default_content_type.dup @implicit_parts_order ||= @@default_implicit_parts_order.dup @template ||= method_name @mailer_name ||= Inflector.underscore(self.class.name) @parts ||= [] @headers ||= {} @body ||= {} @mime_version = @@default_mime_version.dup if @@default_mime_version end
<code/>and<pre/>for code samples.