diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-12-05 15:40:53 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-12-09 17:20:12 +0100 |
commit | 593c912151eaef865d31fc2a8307ef6d337c2349 (patch) | |
tree | 1239614ffe9ab26ef7e24070e264c2394aceaa07 /lib/api/helpers.rb | |
parent | 0f90fd639c9ed387426e0a8ec3a23ac33b37024c (diff) | |
download | gitlab-ce-593c912151eaef865d31fc2a8307ef6d337c2349.tar.gz |
Grapify the service API
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 7f94ede7940..16ac40b7142 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -93,17 +93,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) |