private Method

Base.initialize_defaults(method_name)

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 489
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.