Class: Omniauth::Rails::OmniAuthRouteBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/models/omniauth/rails/omni_auth_route_builder.rb

Instance Method Summary collapse

Constructor Details

#initializeOmniAuthRouteBuilder

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

#routeObject



9
10
11
# File 'app/models/omniauth/rails/omni_auth_route_builder.rb', line 9

def route
  "/auth/#{provider}"
end