Class: Capcoauth::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Capcoauth::ApplicationController
show all
- Defined in:
- app/controllers/capcoauth/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#capcoauth_token ⇒ Object
10
11
12
|
# File 'app/controllers/capcoauth/application_controller.rb', line 10
def capcoauth_token
@capcoauth_token ||= OAuth::AccessToken.new(session[:capcoauth_access_token])
end
|
#oauth_callback_url ⇒ Object
14
15
16
|
# File 'app/controllers/capcoauth/application_controller.rb', line 14
def oauth_callback_url
"#{root_url}auth/callback"
end
|