mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Load AV::Layouts dynamicly via railties
This commit is contained in:
parent
d6363aa180
commit
3fd2e72477
5 changed files with 5 additions and 4 deletions
|
@ -210,7 +210,6 @@ module ActionController
|
|||
end
|
||||
|
||||
MODULES = [
|
||||
ActionView::Layouts,
|
||||
AbstractController::Translation,
|
||||
AbstractController::AssetPaths,
|
||||
|
||||
|
|
|
@ -193,8 +193,6 @@ module ActionController #:nodoc:
|
|||
module Streaming
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
include ActionView::Rendering
|
||||
|
||||
protected
|
||||
|
||||
# Set proper cache control and transfer encoding when streaming
|
||||
|
|
|
@ -268,6 +268,8 @@ class Rack::TestCase < ActionDispatch::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
ActionController::Base.superclass.send(:include, ActionView::Layouts)
|
||||
|
||||
module ActionController
|
||||
class Base
|
||||
include ActionController::Testing
|
||||
|
|
|
@ -38,7 +38,7 @@ module ActionView
|
|||
|
||||
initializer "action_view.setup_action_pack" do |app|
|
||||
ActiveSupport.on_load(:action_controller) do
|
||||
ActionController::Base.send(:include, ActionView::Layouts)
|
||||
ActionController::Base.superclass.send(:include, ActionView::Layouts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -268,6 +268,8 @@ class Rack::TestCase < ActionDispatch::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
ActionController::Base.superclass.send(:include, ActionView::Layouts)
|
||||
|
||||
module ActionController
|
||||
class Base
|
||||
include ActionController::Testing
|
||||
|
|
Loading…
Reference in a new issue