From c517a4fb9a6388ab561615f8556043ce03d531bd Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Thu, 10 Dec 2009 13:07:22 -0800 Subject: Add autoloads for ActionView::Template* classes, and an ActionView::TemplateError alias for ActionView::Template::Error. Signed-off-by: Yehuda Katz --- actionpack/lib/action_view.rb | 4 ++++ actionpack/lib/action_view/template/error.rb | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3