diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-03 12:41:28 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-03 12:52:53 -0700 |
commit | e3744166ec0b98b76175ee70bda8051fb05690e7 (patch) | |
tree | 26246e2a6f409fa4a1912479e2290803c212c4eb /actionpack/test | |
parent | 4b6321efa9be103ca1e00c13dd9d955b076dd31e (diff) | |
download | rails-e3744166ec0b98b76175ee70bda8051fb05690e7.tar.gz rails-e3744166ec0b98b76175ee70bda8051fb05690e7.tar.bz2 rails-e3744166ec0b98b76175ee70bda8051fb05690e7.zip |
Refactor ActionController to use find_template and template_exists?
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/abstract_controller/abstract_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract_controller/abstract_controller_test.rb b/actionpack/test/abstract_controller/abstract_controller_test.rb index 7991436703..3b4046a424 100644 --- a/actionpack/test/abstract_controller/abstract_controller_test.rb +++ b/actionpack/test/abstract_controller/abstract_controller_test.rb @@ -148,10 +148,10 @@ module AbstractController private def self.layout(formats) begin - view_paths.find(name.underscore, {:formats => formats}, "layouts") + find_template(name.underscore, {:formats => formats}, :_prefix => "layouts") rescue ActionView::MissingTemplate begin - view_paths.find("application", {:formats => formats}, "layouts") + find_template("application", {:formats => formats}, :_prefix => "layouts") rescue ActionView::MissingTemplate end end |