Skip to content

Instantly share code, notes, and snippets.

@federomero
Created July 21, 2012 05:09
Show Gist options
  • Save federomero/3154659 to your computer and use it in GitHub Desktop.
Save federomero/3154659 to your computer and use it in GitHub Desktop.
Sinatra namespace bug
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