Sha256: c328c48d4ea1f2fac6eee491b51bba188e7eb6415b91701802738d85b7948586

Contents?: true

Size: 288 Bytes

Versions: 12

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module Osso
  module Models
    class AuthorizationCode < ActiveRecord::Base
      include OAuth2Token

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
osso-0.0.3.8 lib/osso/models/authorization_code.rb
osso-0.0.3.7 lib/osso/models/authorization_code.rb
osso-0.0.3.6 lib/osso/models/authorization_code.rb
osso-0.0.3.5 lib/osso/models/authorization_code.rb
osso-0.0.3.4 lib/osso/models/authorization_code.rb
osso-0.0.3.3 lib/osso/models/authorization_code.rb
osso-0.0.3.2 lib/osso/models/authorization_code.rb
osso-0.0.3.1 lib/osso/models/authorization_code.rb
osso-0.0.3 lib/osso/models/authorization_code.rb
osso-0.0.2.10 lib/osso/models/authorization_code.rb
osso-0.0.2.9 lib/osso/models/authorization_code.rb
osso-0.0.2.8 lib/osso/models/authorization_code.rb