Permalink
Browse files

Require ActionController::Railtie in the default middleware stack.

This will make possible to do a frameworkless initialization since the
the default middleware stack is self contained.
  • Loading branch information...
1 parent 2d6d8a7 commit 144d747ad5f59c6e6ed94e76d679ba83132ac251 @rafaelfranca rafaelfranca committed Oct 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/lib/rails/application.rb
View
2 railties/lib/rails/application.rb
@@ -148,6 +148,8 @@ def call(env)
alias :build_middleware_stack :app
def default_middleware_stack
+ require 'action_controller/railtie'
+
ActionDispatch::MiddlewareStack.new.tap do |middleware|
if rack_cache = config.action_controller.perform_caching && config.action_dispatch.rack_cache
require "action_dispatch/http/rack_cache"

0 comments on commit 144d747

Please sign in to comment.