Class: Omniauth::Rails::OmniAuthRouteBuilder
- Inherits:
-
Object
- Object
- Omniauth::Rails::OmniAuthRouteBuilder
- Defined in:
- app/models/omniauth/rails/omni_auth_route_builder.rb
Instance Method Summary collapse
-
#initialize ⇒ OmniAuthRouteBuilder
constructor
A new instance of OmniAuthRouteBuilder.
- #route ⇒ Object
Constructor Details
#initialize ⇒ OmniAuthRouteBuilder
Returns a new instance of OmniAuthRouteBuilder.
5 6 7 |
# File 'app/models/omniauth/rails/omni_auth_route_builder.rb', line 5 def initialize @provider = "google_oauth2" end |
Instance Method Details
#route ⇒ Object
9 10 11 |
# File 'app/models/omniauth/rails/omni_auth_route_builder.rb', line 9 def route "/auth/#{provider}" end |