Browse files

Include AV::Layouts before setting view_paths

  • Loading branch information...
1 parent d176025 commit b068e20b35797aa6deaa377a48c990759734f515 @lukaszx0 lukaszx0 committed Jul 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionview/lib/action_view/railtie.rb
View
4 actionview/lib/action_view/railtie.rb
@@ -36,13 +36,13 @@ class Railtie < Rails::Railtie # :nodoc:
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

0 comments on commit b068e20

Please sign in to comment.