Class: Rack::Response
- Inherits:
-
Object
- Object
- Rack::Response
- Defined in:
- lib/warden/github/rails/test_helpers.rb
Overview
Add a method to Rack::Response to easily determine if a request resulted in an OAuth redirect to GitHub.
Instance Method Summary collapse
Instance Method Details
#github_oauth_redirect? ⇒ Boolean
24 25 26 27 |
# File 'lib/warden/github/rails/test_helpers.rb', line 24 def github_oauth_redirect? redirect? and location.start_with?('https://github.com/login/oauth/authorize') end |