aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Weizenbaum <nex342@gmail.com>2009-12-10 13:07:22 -0800
committerYehuda Katz <wycats@Yehuda-Katz.local>2009-12-10 13:11:21 -0800
commitc517a4fb9a6388ab561615f8556043ce03d531bd (patch)
tree4f6f917d6167c80ebca1aa0ef87ac10298ccee80
parent8b9275340f6845f1fd3ad8fc43d66a95a73b0c2d (diff)
downloadrails-c517a4fb9a6388ab561615f8556043ce03d531bd.tar.gz
rails-c517a4fb9a6388ab561615f8556043ce03d531bd.tar.bz2
rails-c517a4fb9a6388ab561615f8556043ce03d531bd.zip
Add autoloads for ActionView::Template* classes, and an ActionView::TemplateError alias for ActionView::Template::Error.
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
-rw-r--r--actionpack/lib/action_view.rb4
-rw-r--r--actionpack/lib/action_view/template/error.rb4
2 files changed, 7 insertions, 1 deletions
diff --git a/actionpack/lib/action_view.rb b/actionpack/lib/action_view.rb
index 81ee19d996..06238ca747 100644
--- a/actionpack/lib/action_view.rb
+++ b/actionpack/lib/action_view.rb
@@ -43,6 +43,10 @@ module ActionView
autoload :PathResolver, 'action_view/template/resolver'
autoload :PathSet, 'action_view/paths'
autoload :FileSystemResolverWithFallback, 'action_view/template/resolver'
+
+ autoload :TemplateError, 'action_view/template/error'
+ autoload :TemplateHandler, 'action_view/template'
+ autoload :TemplateHandlers, 'action_view/template'
end
require 'action_view/erb/util'
diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb
index a136d4333b..648f708d3d 100644
--- a/actionpack/lib/action_view/template/error.rb
+++ b/actionpack/lib/action_view/template/error.rb
@@ -100,4 +100,6 @@ module ActionView
end
end
end
-end \ No newline at end of file
+
+ TemplateError = Template::Error
+end