Commit 3dd940d4cbd72afed38eba49b557823a6a55eac2
1 parent
9aafe77e
Exists in
master
and in
4 other branches
API: extend UserLogin entity from UserBasic
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
lib/api/entities.rb
| @@ -9,8 +9,8 @@ module Gitlab | @@ -9,8 +9,8 @@ module Gitlab | ||
| 9 | expose :id, :email, :name, :blocked, :created_at | 9 | expose :id, :email, :name, :blocked, :created_at |
| 10 | end | 10 | end |
| 11 | 11 | ||
| 12 | - class UserLogin < Grape::Entity | ||
| 13 | - expose :id, :email, :name, :private_token, :blocked, :created_at | 12 | + class UserLogin < UserBasic |
| 13 | + expose :private_token | ||
| 14 | end | 14 | end |
| 15 | 15 | ||
| 16 | class Hook < Grape::Entity | 16 | class Hook < Grape::Entity |
| @@ -56,9 +56,7 @@ module Gitlab | @@ -56,9 +56,7 @@ module Gitlab | ||
| 56 | end | 56 | end |
| 57 | 57 | ||
| 58 | class Key < Grape::Entity | 58 | class Key < Grape::Entity |
| 59 | - expose :id, | ||
| 60 | - :title, | ||
| 61 | - :key | 59 | + expose :id, :title, :key |
| 62 | end | 60 | end |
| 63 | end | 61 | end |
| 64 | end | 62 | end |