aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-08-07 15:00:12 -0300
committerYehuda Katz <wycats@gmail.com>2009-08-07 15:00:12 -0300
commit010a0c92eb573cd4c216c51371356adddfde11cf (patch)
tree96da751eaf21bcac20818440657b3f38a6687ffc /actionmailer/lib
parent55575e21655023259d0dae22bc1b148b34168d92 (diff)
downloadrails-010a0c92eb573cd4c216c51371356adddfde11cf.tar.gz
rails-010a0c92eb573cd4c216c51371356adddfde11cf.tar.bz2
rails-010a0c92eb573cd4c216c51371356adddfde11cf.zip
Rename find_by_parts and find_by_parts? to find and exists?
Diffstat (limited to 'actionmailer/lib')
-rw-r--r--actionmailer/lib/action_mailer/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb
index 7b03a7f9ff..e36ee72298 100644
--- a/actionmailer/lib/action_mailer/base.rb
+++ b/actionmailer/lib/action_mailer/base.rb
@@ -499,7 +499,7 @@ module ActionMailer #:nodoc:
# ====
# TODO: Revisit this
# template_exists = @parts.empty?
- # template_exists ||= template_root.find_by_parts("#{mailer_name}/#{@template}")
+ # template_exists ||= template_root.find("#{mailer_name}/#{@template}")
# @body = render_message(@template, @body) if template_exists
# Finally, if there are other message parts and a textual body exists,
@@ -585,7 +585,7 @@ module ActionMailer #:nodoc:
if file
prefix = mailer_name unless file =~ /\//
- template = view_paths.find_by_parts(file, {:formats => formats}, prefix)
+ template = view_paths.find(file, {:formats => formats}, prefix)
end
layout = _pick_layout(layout,