aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-12 14:25:10 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-12 14:25:10 +0100
commit2a12686832fbcf0566454904a5d733998506bf56 (patch)
treeef6da03a35679c59a1673694277f7d34a16fcc92 /actionpack/lib/abstract_controller
parent16846553b8866eab2aa3b128a2a23a221a25f7e3 (diff)
downloadrails-2a12686832fbcf0566454904a5d733998506bf56.tar.gz
rails-2a12686832fbcf0566454904a5d733998506bf56.tar.bz2
rails-2a12686832fbcf0566454904a5d733998506bf56.zip
Allow anything that responds to render to be given as :template and use find_template instead of find in views.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/view_paths.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/abstract_controller/view_paths.rb b/actionpack/lib/abstract_controller/view_paths.rb
index c2a9f6336d..b331eb51b6 100644
--- a/actionpack/lib/abstract_controller/view_paths.rb
+++ b/actionpack/lib/abstract_controller/view_paths.rb
@@ -7,7 +7,7 @@ module AbstractController
self._view_paths = ActionView::PathSet.new
end
- delegate :template_exists?, :view_paths, :formats, :formats=,
+ delegate :find_template, :template_exists?, :view_paths, :formats, :formats=,
:locale, :locale=, :to => :lookup_context
# LookupContext is the object responsible to hold all information required to lookup
@@ -29,10 +29,6 @@ module AbstractController
lookup_context.view_paths.unshift(*path)
end
- def template_exists?(*args)
- lookup_context.exists?(*args)
- end
-
module ClassMethods
# Append a path to the list of view paths for this controller.
#