1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add autoloads for ActionView::Template* classes, and an ActionView::TemplateError alias for ActionView::Template::Error.

Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
This commit is contained in:
Nathan Weizenbaum 2009-12-10 13:07:22 -08:00 committed by Yehuda Katz
parent 8b9275340f
commit c517a4fb9a
2 changed files with 7 additions and 1 deletions

View file

@ -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'

View file

@ -100,4 +100,6 @@ module ActionView
end
end
end
end
TemplateError = Template::Error
end