diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-29 20:14:33 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-29 20:14:33 +0000 |
commit | f3aa7c1e64b2f872215f860cecbe7feca3e793d7 (patch) | |
tree | dd0e14ac1300578d9a72f2fc6af28b06003c17c7 /actionmailer/lib/action_mailer/base.rb | |
parent | 5fe64dd1a62eafc27b20b82b4b6c1139887046e3 (diff) | |
download | rails-f3aa7c1e64b2f872215f860cecbe7feca3e793d7.tar.gz rails-f3aa7c1e64b2f872215f860cecbe7feca3e793d7.tar.bz2 rails-f3aa7c1e64b2f872215f860cecbe7feca3e793d7.zip |
r4730@asus: jeremy | 2006-06-29 13:13:38 -0700
Avoid naming collision among compiled view methods. Back out AM workaround. References #5520.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer/base.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index a84da1866d..81f240e035 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -353,7 +353,7 @@ module ActionMailer #:nodoc: content_type = md.captures[1].gsub('.', '/') @parts << Part.new(:content_type => content_type, :disposition => "inline", :charset => charset, - :body => render_message("#{mailer_name}/#{template_name}", @body)) + :body => render_message(template_name, @body)) end unless @parts.empty? @content_type = "multipart/alternative" @@ -367,7 +367,7 @@ module ActionMailer #:nodoc: # it. template_exists = @parts.empty? template_exists ||= Dir.glob("#{template_path}/#{@template}.*").any? { |i| File.basename(i).split(".").length == 2 } - @body = render_message("#{mailer_name}/#{@template}", @body) if template_exists + @body = render_message(@template, @body) if template_exists # Finally, if there are other message parts and a textual body exists, # we shift it onto the front of the parts and set the body to nil (so @@ -432,7 +432,7 @@ module ActionMailer #:nodoc: end def initialize_template_class(assigns) - ActionView::Base.new(template_root, assigns, self) + ActionView::Base.new(template_path, assigns, self) end def sort_parts(parts, order = []) |