From cd503e6c590cd48c2c9bb7869522494bfc62cb14 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 15 Mar 2013 18:06:06 +0100 Subject: [PATCH] delegate methods in classic mode from rackup file, fixes #682 --- CHANGES | 4 ++++ lib/sinatra/main.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES b/CHANGES index 030d38e6..f48e4034 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ += 1.4.0 / not yet released + + * Make delegated methods available in config.ru (Konstantin Haase) + = 1.4.0 / 2013-03-15 * Add support for LINK and UNLINK requests. (Konstantin Haase) diff --git a/lib/sinatra/main.rb b/lib/sinatra/main.rb index 5159a023..76a55261 100644 --- a/lib/sinatra/main.rb +++ b/lib/sinatra/main.rb @@ -28,3 +28,7 @@ end # include would include the module in Object # extend only extends the `main` object extend Sinatra::Delegator + +class Rack::Builder + include Sinatra::Delegator +end