Skip to content

Instantly share code, notes, and snippets.

@jcrosby
Created November 28, 2008 07:49
Show Gist options
  • Save jcrosby/29936 to your computer and use it in GitHub Desktop.
Save jcrosby/29936 to your computer and use it in GitHub Desktop.
require 'rack/config'
use Rack::Config do |env|
env['couch.users'] = 'http://localhost:5984/users'
end
use MyAuthMiddleware # needs users
run MyApp # also needs users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment