Commit 33c48ecd35f4a2d5b2596882e36e722f700aff2f
1 parent
6dba727c
Exists in
master
and in
4 other branches
Code deduplication using inheritance for GroupDetail
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
lib/api/entities.rb
@@ -36,8 +36,7 @@ module Gitlab | @@ -36,8 +36,7 @@ module Gitlab | ||
36 | expose :id, :name, :path, :owner_id | 36 | expose :id, :name, :path, :owner_id |
37 | end | 37 | end |
38 | 38 | ||
39 | - class GroupDetail < Grape::Entity | ||
40 | - expose :id, :name, :path, :name, :owner_id, :type | 39 | + class GroupDetail < Group |
41 | expose :projects, using: Entities::Project | 40 | expose :projects, using: Entities::Project |
42 | end | 41 | end |
43 | 42 |