aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-19 12:23:08 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-19 12:23:08 -0500
commit746122735269b9077c7d5d99d88e8b22d88ad8d5 (patch)
treef0ef00e32cbac0552f253bca0dc15e9ae18c1555 /actionmailer
parente0d7bace4ecb9152fac112e809af521e36fbc6a5 (diff)
downloadrails-746122735269b9077c7d5d99d88e8b22d88ad8d5.tar.gz
rails-746122735269b9077c7d5d99d88e8b22d88ad8d5.tar.bz2
rails-746122735269b9077c7d5d99d88e8b22d88ad8d5.zip
Ruby 1.9: Call join on template_root instead of to_s
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/base.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 5a71935009..e4920f0c86 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -529,7 +529,7 @@ module ActionMailer #:nodoc:
end
def render_message(method_name, body)
- render :file => method_name, :body => body, :use_full_path => true
+ render :file => method_name, :body => body
end
def render(opts)
@@ -537,12 +537,11 @@ module ActionMailer #:nodoc:
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}"
+ "#{template_root.join}/#{mailer_name}"
end
def initialize_template_class(assigns)