Skip to content

Instantly share code, notes, and snippets.

@bantic
Created August 18, 2010 20:57
Show Gist options
  • Save bantic/536166 to your computer and use it in GitHub Desktop.
Save bantic/536166 to your computer and use it in GitHub Desktop.
module Appname
class Application < Rails::Application
# ...lots of stuff...
config.middleware.use Rack::Auth::Basic, "My Realm", &(Proc.new {|user,pass| [user,pass] == ["foo","bar"]})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment