提交 ae93789d 编写于 作者: C Carlhuda

Move middlewares to the Application level. If you want to modify the...

Move middlewares to the Application level. If you want to modify the middleware, either use Rails.application.config.middleware or modify it in an initializer (if you need to set it relative to user-specified middleware).
上级 79b0b508
......@@ -21,6 +21,10 @@ def initialize(*)
@consider_all_requests_local = true
end
def middleware
@@default_middleware_stack ||= default_middleware
end
def paths
@paths ||= begin
paths = super
......
......@@ -10,10 +10,6 @@ def initialize
@session_options = {}
end
def middleware
@@default_middleware_stack ||= default_middleware
end
# Holds generators configuration:
#
# config.generators do |g|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册