Commit 33c48ecd35f4a2d5b2596882e36e722f700aff2f

Authored by Christian Simon
1 parent 6dba727c

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 36 expose :id, :name, :path, :owner_id
37 37 end
38 38  
39   - class GroupDetail < Grape::Entity
40   - expose :id, :name, :path, :name, :owner_id, :type
  39 + class GroupDetail < Group
41 40 expose :projects, using: Entities::Project
42 41 end
43 42  
... ...