Class: AuthorizationCode

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Oauth2Token
Defined in:
app/models/authorization_code.rb

Instance Method Summary collapse

Methods included from Oauth2Token

#expired!, #expires_in, included

Instance Method Details

#access_tokenObject



6
7
8
# File 'app/models/authorization_code.rb', line 6

def access_token
  @access_token ||= expired! && user.access_tokens.create(:client => client)
end