class UserPlane::RouteConcerns::OAuthEndpoint
Public Instance Methods
build()
click to toggle source
# File lib/user_plane/route_concerns.rb, line 151 def build controller = concern_options.delete(:controller) || 'sessions' mapper.resources :auth, options(as: :o_auth_endpoint, only: :edit, path_names: {edit: 'callback'}, param: :provider, to: "#{controller}#oauth_callback") mapper.resources :auth, options(as: :o_auth_endpoint, only: :show, param: :provider, to: "#{controller}#oauth_request") end