Move AccountSlug::Extractor later in the stack

so that in development, it runs after reloading; but still before the
database selector middleware in case we ever want to do something
account-specific.
This commit is contained in:
Mike Dalessio
2025-11-18 09:17:02 -05:00
parent 444d43f2ac
commit 3b717bbe0d
@@ -44,5 +44,5 @@ module AccountSlug
end
Rails.application.config.middleware.tap do |stack|
stack.insert_before Rails::Rack::Logger, AccountSlug::Extractor
stack.insert_before ActiveRecord::Middleware::DatabaseSelector, AccountSlug::Extractor
end