Skip to content

Commit

Permalink
sinatra v4, rack v3 compatibility. rack/rack#1663
Browse files Browse the repository at this point in the history
  • Loading branch information
msz-kp committed Mar 13, 2024
1 parent 86ed814 commit 472dfdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion padrino-core/lib/padrino-core/server.rb
Expand Up @@ -20,7 +20,9 @@ def self.detect_application(options)
if (config_file = options.delete(:config)) || File.file?(default_config_file)
config_file ||= default_config_file
fail "Rack config file `#{config_file}` must have `.ru` extension" unless config_file =~ /\.ru$/
rack_app, rack_options = Rack::Builder.parse_file(config_file)
rack_app, _ = Rack::Builder.parse_file(config_file)
rack_options = {}

[rack_app, rack_options.merge(options)]
else
[Padrino.application, options]
Expand Down

0 comments on commit 472dfdc

Please sign in to comment.