lib/action_mailer/base.rb in actionmailer-2.1.0 vs lib/action_mailer/base.rb in actionmailer-2.1.1
- old
+ new
@@ -528,17 +528,18 @@
@body ||= {}
@mime_version = @@default_mime_version.dup if @@default_mime_version
end
def render_message(method_name, body)
- render :file => method_name, :body => body
+ render :file => method_name, :body => body, :use_full_path => true
end
def render(opts)
body = opts.delete(:body)
if opts[:file] && opts[:file] !~ /\//
opts[:file] = "#{mailer_name}/#{opts[:file]}"
end
+ opts[:use_full_path] = true
initialize_template_class(body).render(opts)
end
def template_path
"#{template_root}/#{mailer_name}"