aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-06-26 15:54:29 +0200
committerŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-08-25 11:39:08 +0200
commit766fa97b457fb2f9903f80aaec640cd1d08a1bbd (patch)
treed38fe7fd5c7e7a34e541f2b5ba9f5b79e8f2d3a9 /actionview
parentc48ce6e73d1f0765902779adab3242b5f4a893c6 (diff)
downloadrails-766fa97b457fb2f9903f80aaec640cd1d08a1bbd.tar.gz
rails-766fa97b457fb2f9903f80aaec640cd1d08a1bbd.tar.bz2
rails-766fa97b457fb2f9903f80aaec640cd1d08a1bbd.zip
Hook up AV::Rendering on AV intialization
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/railtie.rb6
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