Sha256: 3a62daf6b5993fe3b14cc222cd5dcd8923cca61183f185da186f1b55a29cb0e7

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

require 'expirable_token'

class AuthorizationCode < ActiveRecord::Base
  include ExpirableToken

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_oauth2_providable-0.1.3 app/models/authorization_code.rb
devise_oauth2_providable-0.1.2 app/models/authorization_code.rb
devise_oauth2_providable-0.1.1 app/models/authorization_code.rb
devise_oauth2_providable-0.1.0 app/models/authorization_code.rb