Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 144d747ad5f59c6e6ed94e76d679ba83132ac251 1 parent 2d6d8a7
@rafaelfranca rafaelfranca authored
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"
Please sign in to comment.
Something went wrong with that request. Please try again.