diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-12 17:54:00 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-12 17:54:00 +0000 |
commit | 927a75567a9ff61f4c7ccdc4caa4280bbcab551c (patch) | |
tree | a0bd0fccf7a4c945f98edd4249fbb53316692090 /lib/api/helpers.rb | |
parent | 61844de497ed364049905f9da91f11140f6cfd9b (diff) | |
parent | 8d0645c2ce3769268020ad6f8e51db07fb1e4bc6 (diff) | |
download | gitlab-ce-927a75567a9ff61f4c7ccdc4caa4280bbcab551c.tar.gz |
Merge branch 'grapify-service-api' into 'master'
Grapify the service API
Related to #22928
See merge request !7970
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 8b0f8deadfa..f03d8da732e 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -96,17 +96,6 @@ module API end end - def project_service(project = user_project) - @project_service ||= project.find_or_initialize_service(params[:service_slug].underscore) - @project_service || not_found!("Service") - end - - def service_attributes - @service_attributes ||= project_service.fields.inject([]) do |arr, hash| - arr << hash[:name].to_sym - end - end - def find_group(id) if id =~ /^\d+$/ Group.find_by(id: id) |