Code deduplication using inheritance for GroupDetail
This commit is contained in:
parent
6dba727cb2
commit
33c48ecd35
1 changed files with 1 additions and 2 deletions
|
@ -36,8 +36,7 @@ module Gitlab
|
|||
expose :id, :name, :path, :owner_id
|
||||
end
|
||||
|
||||
class GroupDetail < Grape::Entity
|
||||
expose :id, :name, :path, :name, :owner_id, :type
|
||||
class GroupDetail < Group
|
||||
expose :projects, using: Entities::Project
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue