aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-09 13:12:11 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-09 13:12:11 +0100
commit00d6271d2b11a14065925529af0c1200406f8beb (patch)
treee3024baa083ef39b97f0293da8661cb3744957ba /actionmailer
parentc507e16dba844c7b066d145bfd5c5d23e7a9c5ad (diff)
downloadrails-00d6271d2b11a14065925529af0c1200406f8beb.tar.gz
rails-00d6271d2b11a14065925529af0c1200406f8beb.tar.bz2
rails-00d6271d2b11a14065925529af0c1200406f8beb.zip
Clean up the API required from ActionView::Template.
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index cd0c5bea53..ef3820ad67 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -617,9 +617,9 @@ module ActionMailer #:nodoc:
def each_template(paths, name, &block) #:nodoc:
Array(paths).each do |path|
templates = lookup_context.find_all(name, path)
+ templates = templates.uniq_by { |t| t.formats }
unless templates.empty?
- templates = templates.uniq_by { |t| t.details[:formats] }
templates.each(&block)
return
end