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
|
expose :id, :name, :path, :owner_id
|
||||||
end
|
end
|
||||||
|
|
||||||
class GroupDetail < Grape::Entity
|
class GroupDetail < Group
|
||||||
expose :id, :name, :path, :name, :owner_id, :type
|
|
||||||
expose :projects, using: Entities::Project
|
expose :projects, using: Entities::Project
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue