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 /actionpack/lib/abstract_controller/rendering_controller.rb | |
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 'actionpack/lib/abstract_controller/rendering_controller.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/rendering_controller.rb b/actionpack/lib/abstract_controller/rendering_controller.rb index 23cd71e0bd..bb7891fbfd 100644 --- a/actionpack/lib/abstract_controller/rendering_controller.rb +++ b/actionpack/lib/abstract_controller/rendering_controller.rb @@ -111,7 +111,7 @@ module AbstractController def _determine_template(options) name = (options[:_template_name] || action_name).to_s - options[:_template] ||= view_paths.find_by_parts( + options[:_template] ||= view_paths.find( name, { :formats => formats }, options[:_prefix], options[:_partial] ) end |