Commit 33c48ecd authored by Christian Simon's avatar Christian Simon

Code deduplication using inheritance for GroupDetail

parent 6dba727c
...@@ -36,8 +36,7 @@ module Gitlab ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment