SReorganize autoloads slightly and move two files to lib/action_view root.
This commit is contained in:
parent
37d78028b2
commit
aa508c9baf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue