gitlab-org--gitlab-foss/app/models/oauth_access_token.rb
2017-10-12 11:13:37 +02:00

6 lines
206 B
Ruby

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