Skip to content

Commit

Permalink
Add autoloads for ActionView::Template* classes, and an ActionView::T…
Browse files Browse the repository at this point in the history
…emplateError alias for ActionView::Template::Error.

Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
  • Loading branch information
nex3 authored and Yehuda Katz committed Dec 10, 2009
1 parent 8b92753 commit c517a4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions actionpack/lib/action_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion actionpack/lib/action_view/template/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ def source_location
end
end
end
end

TemplateError = Template::Error
end

0 comments on commit c517a4f

Please sign in to comment.