Skip to content

Commit

Permalink
Explicitly require rack/server as it may not be part of rack.
Browse files Browse the repository at this point in the history
Rack 3 separates this code into a separate gem, so autoloads from `rack`
may not load it. Explicitly require it where needed.
  • Loading branch information
ioquatix committed Jan 20, 2023
1 parent 5b9a246 commit 250b6a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/commands/server/server_command.rb
Expand Up @@ -6,6 +6,7 @@
require "active_support/core_ext/string/filters"
require "rails/dev_caching"
require "rails/command/environment_argument"
require "rack/server"

module Rails
class Server < ::Rack::Server
Expand Down

0 comments on commit 250b6a0

Please sign in to comment.