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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user