diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-07-12 16:58:48 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-07-21 11:00:00 -0300 |
commit | c5c9dce270516adf3a2e4a549d1c32b6a3223335 (patch) | |
tree | c148707b15deaad01e8e9b50eefd1e5f2a954e45 /lib/api/entities.rb | |
parent | 05329d4a364a5c55f2de9546871de1909b6be3f5 (diff) | |
download | gitlab-ce-issue_34622.tar.gz |
Add group milestones API endpointissue_34622
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 09a88869063..586325ddb0c 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -269,8 +269,8 @@ module API class Milestone < Grape::Entity expose :id, :iid - expose(:project_id) { |entity| entity&.project_id } - expose(:group_id) { |entity| entity&.group_id } + expose :project_id, if: -> (entity, options) { entity&.project_id } + expose :group_id, if: -> (entity, options) { entity&.group_id } expose :title, :description expose :state, :created_at, :updated_at expose :due_date |