diff options
author | Christian Simon <cs@f03.eu> | 2013-02-03 19:38:33 +0100 |
---|---|---|
committer | Christian Simon <cs@f03.eu> | 2013-02-03 19:38:33 +0100 |
commit | 33c48ecd35f4a2d5b2596882e36e722f700aff2f (patch) | |
tree | 06030915f0258d19bfdff05df1c48662d1ce209e /lib | |
parent | 6dba727cb282ee19b5e4c6b0d0e3ec3bff01ac63 (diff) | |
download | gitlab-ce-33c48ecd35f4a2d5b2596882e36e722f700aff2f.tar.gz |
Code deduplication using inheritance for GroupDetail
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b78fc1b86fe..c1873d87b55 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -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 |