Code deduplication using inheritance for GroupDetail

This commit is contained in:
Christian Simon 2013-02-03 19:38:33 +01:00
parent 6dba727cb2
commit 33c48ecd35

View file

@ -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