lib/globalize/rails/action_mailer.rb
# Initialize the mailer via the given +method_name+. The body will be
# rendered and a new TMail::Mail object created.
#
# This method is overriden by Globalize to support multiple templates
# for different locales. For example, use:
#   signup_notification.en-US.text.html.rhtml
# It is fully backwards compatible with the original rails version.

Initialize the mailer via the given +method_name+. The body will be
rendered and a new TMail::Mail object created.

This method is overriden by Globalize to support multiple templates
for different locales. For example, use:
signup_notification.en-US.text.html.rhtml
It is fully backwards compatible with the original rails version.
Initialize the mailer via the given + method_name + . The body will be rendered and a new TMail :: Mail object created . This method is overriden by Globalize to support multiple templates for different locales . For example use : signup_notification . en - US . text . html . rhtml It is fully backwards compatible with the original rails version .
def create!(method_name, *parameters) 
      initialize_defaults(method_name)
      __send__(method_name, *parameters)
      unless String === @body
        if @parts.empty?
          append_localized_parts
          unless @parts.empty?
            @content_type = "multipart/alternative"
            @parts = sort_parts(@parts, @implicit_parts_order)
          end
        end
        render_localized_normal_template
        if !@parts.empty? && String === @body
          @parts.unshift Part.new(:charset => charset, :body => @body)
          @body = nil
        end
      end
      @mime_version ||= "1.0" if !@parts.empty?
      @mail = create_mail
    end
def create! ( method_name , * parameters ) initialize_defaults ( method_name ) __send__ ( method_name , * parameters ) unless String === @body if @parts . empty? append_localized_parts unless @parts . empty? @content_type = "multipart/alternative" @parts = sort_parts ( @parts , @implicit_parts_order ) end end render_localized_normal_template if ! @parts . empty? && String === @body @parts . unshift Part . new ( :charset => charset , :body => @body ) @body = nil end end @mime_version ||= "1.0" if ! @parts . empty? @mail = create_mail end
Initialize the mailer via the given +method_name+.
Initialize the mailer via the given + method_name + .
#:nodoc:
 # If an explicit, textual body has not been set, we check assumptions.
 # First, we look to see if there are any likely templates that match,
 # which include the content-type in their file name (i.e.,
 # "the_template_file.text.html.erb", etc.). Only do this if parts
 # have not already been specified manually.
 # Then, if there were such templates, we check to see if we ought to
 # also render a "normal" template (without the content type). If a
 # normal template exists (or if there were no implicit parts) we render
 # it.
 # Finally, if there are other message parts and a textual body exists,
 # we shift it onto the front of the parts and set the body to nil (so
 # that create_mail doesn't try to render it in addition to the parts).
 # If this is a multipart e-mail add the mime_version if it is not
 # already set.
 # build the mail object itself

method_name
<not_specific>
parameters
<not_specific>