Created
November 26, 2010 21:47
-
-
Save adrianpike/717255 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # This file is used by Rack-based servers to start the application. | |
| require ::File.expand_path('../config/environment', __FILE__) | |
| require 'rack' | |
| protected = Rack::Auth::Basic.new(Foobar::Application) do |username, password| | |
| 'secret' == password | |
| 'foodebiz' == username | |
| end | |
| protected.realm = 'GO AWAY PLOX' | |
| run protected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment