1
0
Fork 0
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:
Łukasz Strzałkowski 2013-07-16 15:25:25 +02:00
parent d6363aa180
commit 3fd2e72477
5 changed files with 5 additions and 4 deletions

View file

@ -210,7 +210,6 @@ module ActionController
end
MODULES = [
ActionView::Layouts,
AbstractController::Translation,
AbstractController::AssetPaths,

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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