diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-09-27 16:56:48 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-10-12 12:13:37 +0300 |
commit | 025c6eeaa1e02dce31cb836c39ee4a5f312f202f (patch) | |
tree | 14c6de5fb8ab55694413a22cc0ba668ae3773f9d /app | |
parent | ad5b96952e9eb90dc72d640f01aca01b5d0a2a12 (diff) |
Move all API authentication code to APIGuard
Diffstat (limited to 'app')
-rw-r--r-- | app/models/oauth_access_token.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/oauth_access_token.rb b/app/models/oauth_access_token.rb index b85f5dbaf2e..f89e60ad9f4 100644 --- a/app/models/oauth_access_token.rb +++ b/app/models/oauth_access_token.rb @@ -1,4 +1,6 @@ class OauthAccessToken < Doorkeeper::AccessToken belongs_to :resource_owner, class_name: 'User' belongs_to :application, class_name: 'Doorkeeper::Application' + + alias_method :user, :resource_owner end |