Skip to content

Instantly share code, notes, and snippets.

@samsm
Created November 29, 2009 20:05
Show Gist options
  • Save samsm/245044 to your computer and use it in GitHub Desktop.
Save samsm/245044 to your computer and use it in GitHub Desktop.
use Rack::If, {:path => /\A\/admin\/mega-admin.*/}, :any do
use EasyRackOpenID, :allowed_identifiers => ['http://example.com/mega-admin']
end
use Rack::If, {:path => /\A\/admin.*/}, :any do
use EasyRackOpenID, :allowed_identifiers => ['http://example.com/admin']
end
run Site.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment