diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-07-17 18:02:26 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-08-25 11:39:11 +0200 |
commit | b068e20b35797aa6deaa377a48c990759734f515 (patch) | |
tree | ea94a85dd875b207362c43c7821937430c420946 /actionview/lib/action_view | |
parent | d1760253f5a5c26b8b1d0f38f4f288d759fbb306 (diff) | |
download | rails-b068e20b35797aa6deaa377a48c990759734f515.tar.gz rails-b068e20b35797aa6deaa377a48c990759734f515.tar.bz2 rails-b068e20b35797aa6deaa377a48c990759734f515.zip |
Include AV::Layouts before setting view_paths
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/railtie.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index d9704b59c1..8382023e06 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -36,13 +36,13 @@ module ActionView end end - initializer "action_view.setup_action_pack" do |app| + initializer "action_view.setup_action_pack", before: :add_view_paths do |app| ActiveSupport.on_load(:action_controller) do ActionController::Base.superclass.send(:include, ActionView::Layouts) end end - initializer "action_view.setup_action_mailer" do |app| + initializer "action_view.setup_action_mailer", before: :add_view_paths do |app| ActiveSupport.on_load(:action_mailer) do ActionMailer::Base.send(:include, ActionView::Layouts) end |