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/helpers.rb | |
parent | 05329d4a364a5c55f2de9546871de1909b6be3f5 (diff) | |
download | gitlab-ce-c5c9dce270516adf3a2e4a549d1c32b6a3223335.tar.gz |
Add group milestones API endpointissue_34622
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 0f4791841d2..57e3e93500f 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -25,6 +25,10 @@ module API initial_current_user != current_user end + def user_group + @group ||= find_group!(params[:id]) + end + def user_project @project ||= find_project!(params[:id]) end |