SReorganize autoloads slightly and move two files to lib/action_view root.

This commit is contained in:
José Valim 2010-10-14 09:32:53 +02:00
parent 37d78028b2
commit aa508c9baf
5 changed files with 9 additions and 12 deletions

View File

@ -30,13 +30,15 @@ module ActionView
extend ActiveSupport::Autoload
eager_autoload do
autoload :Context
autoload :Template
autoload :Helpers
autoload :Base
autoload :Context
autoload :Helpers
autoload :LookupContext
autoload :PathSet, "action_view/paths"
autoload :TestCase, "action_view/test_case"
autoload :Partials
autoload :PathSet
autoload :Rendering
autoload :Template
autoload :TestCase
autoload_under "renderer" do
autoload :AbstractRenderer
@ -44,11 +46,6 @@ module ActionView
autoload :TemplateRenderer
end
autoload_under "render" do
autoload :Partials
autoload :Rendering
end
autoload_at "action_view/template/resolver" do
autoload :Resolver
autoload :PathResolver

View File

@ -8,7 +8,7 @@ module ActionView
module Compilable
def self.included(base)
ActiveSupport::Deprecation.warn "Including Compilable in your template handler is deprecated. " <<
"All the API your template handler needs to implement is to respond to #call."
"Since Rails 3, all the API your template handler needs to implement is to respond to #call."
base.extend(ClassMethods)
end
@ -30,7 +30,7 @@ module ActionView
def self.inherited(base)
ActiveSupport::Deprecation.warn "Inheriting from ActionView::Template::Handler is deprecated. " <<
"All the API your template handler needs to implement is to respond to #call."
"Since Rails 3, all the API your template handler needs to implement is to respond to #call."
super
end