mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 10:36:04 +10:00
Code deduplication using inheritance for GroupDetail
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user