diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-07 15:00:12 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-07 15:00:12 -0300 |
commit | 010a0c92eb573cd4c216c51371356adddfde11cf (patch) | |
tree | 96da751eaf21bcac20818440657b3f38a6687ffc /actionmailer | |
parent | 55575e21655023259d0dae22bc1b148b34168d92 (diff) | |
download | rails-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')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 4 |
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, |