gitlab-org--gitlab-foss/app/models/oauth_access_token.rb

7 lines
206 B
Ruby
Raw Normal View History

class OauthAccessToken < Doorkeeper::AccessToken
belongs_to :resource_owner, class_name: 'User'
belongs_to :application, class_name: 'Doorkeeper::Application'
alias_method :user, :resource_owner
end