Created
July 21, 2012 05:09
-
-
Save federomero/3154659 to your computer and use it in GitHub Desktop.
Sinatra namespace bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/namespace' | |
set :foo, 42 | |
namespace '/foo' do | |
get '/bar' do | |
settings.respond_to?(:foo).to_s | |
end | |
end | |
# get '/foo/bar' should return 'true' but returns 'false' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment