mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 17:07:29 +08:00
DEV: upgrade to Rails 6.0.3
Upgrades Rails to latest, this version has better compatibility with Ruby 2.7 During the upgrade we needed a new cleaner mechanism for configuring message bus. All tests are green. If anything weird pops up please revert.
This commit is contained in:
@ -6,12 +6,8 @@
|
||||
#
|
||||
# We aren't manipulating the middleware stack directly because of
|
||||
# https://github.com/rails/rails/pull/27936
|
||||
session_operations = Rails::Configuration::MiddlewareStackProxy.new([
|
||||
[:delete, MessageBus::Rack::Middleware],
|
||||
[:unshift, MessageBus::Rack::Middleware],
|
||||
])
|
||||
|
||||
Rails.configuration.middleware = Rails.configuration.middleware + session_operations
|
||||
Rails.configuration.middleware.unshift(MessageBus::Rack::Middleware)
|
||||
|
||||
# no reason to track this in development, that is 300+ redis calls saved per
|
||||
# page view (we serve all assets out of thin in development)
|
||||
|
Reference in New Issue
Block a user