Class: Capcoauth::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/capcoauth/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#capcoauth_tokenObject



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_urlObject



14
15
16
# File 'app/controllers/capcoauth/application_controller.rb', line 14

def oauth_callback_url
  "#{root_url}auth/callback"
end