diff options
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/railtie.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index a9b33f2ca2..d349af3748 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -36,10 +36,14 @@ module ActionView end end - initializer "action_view.setup_action_controller" do |app| + initializer "action_view.setup_action_pack" do |app| ActiveSupport.on_load(:action_controller) do ActionController::Base.send(:include, ActionView::Layouts) end + + ActiveSupport.on_load(:abstract_controller) do + AbstractController::Base.send(:include, ActionView::Rendering) + end end end end |