Class: AuthorizationCode
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AuthorizationCode
- 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_token ⇒ Object
6 7 8 |
# File 'app/models/authorization_code.rb', line 6 def access_token @access_token ||= expired! && user.access_tokens.create(:client => client) end |