Flowdock
method

render

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: ActionMailer::Base
render(opts) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionmailer/lib/action_mailer/base.rb, line 555
      def render(opts)
        body = opts.delete(:body)
        if opts[:file] && (opts[:file] !~ /\// && !opts[:file].respond_to?(:render))
          opts[:file] = "#{mailer_name}/#{opts[:file]}"
        end

        begin
          old_template, @template = @template, initialize_template_class(body)
          layout = respond_to?(:pick_layout, true) ? pick_layout(opts) : false
          @template.render(opts.merge(:layout => layout))
        ensure
          @template = old_template
        end
      end
Register or log in to add new notes.