Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add autoloads for ActionView::Template* classes, and an ActionView::T…

…emplateError alias for ActionView::Template::Error.

Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
  • Loading branch information...
commit c517a4fb9a6388ab561615f8556043ce03d531bd 1 parent 8b92753
@nex3 nex3 authored Yehuda Katz committed
View
4 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'
View
4 actionpack/lib/action_view/template/error.rb
@@ -100,4 +100,6 @@ def source_location
end
end
end
-end
+
+ TemplateError = Template::Error
+end
Please sign in to comment.
Something went wrong with that request. Please try again.