diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-06-05 23:27:27 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-05 23:33:10 +0100 |
commit | 1dbfe9766e00282c56523f6969550494bbffbbf4 (patch) | |
tree | b2946d0a07cc2ee4c6916db4e41fc24698d19ba1 /actionmailer/lib/action_mailer/base.rb | |
parent | 2e0765a00361781fb9bff2a7ca8996eab1f01bd4 (diff) | |
download | rails-1dbfe9766e00282c56523f6969550494bbffbbf4.tar.gz rails-1dbfe9766e00282c56523f6969550494bbffbbf4.tar.bz2 rails-1dbfe9766e00282c56523f6969550494bbffbbf4.zip |
Ensure render :file works inside templates
Diffstat (limited to 'actionmailer/lib/action_mailer/base.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index e065132107..51fc6032cc 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -530,7 +530,7 @@ module ActionMailer #:nodoc: 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) @@ -538,6 +538,7 @@ 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 |