method

render_message

rails latest stable - Class: ActionMailer::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

render_message(method_name, body)
private

No documentation available.

# File actionmailer/lib/action_mailer/base.rb, line 549
      def render_message(method_name, body)
        if method_name.respond_to?(:content_type)
          @current_template_content_type = method_name.content_type
        end
        render :file => method_name, :body => body
      ensure
        @current_template_content_type = nil
      end