diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-06 17:53:40 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-12 16:36:42 +0100 |
commit | a8cf4e13b33da8d71e16874ebf3dce9ca9d40b76 (patch) | |
tree | 57de33f76ac9f64cdf7d6acc2d3f9fcc07dcb6ea /lib/api/helpers.rb | |
parent | e1c5eb480e10329245760edd0760a5b3cb929240 (diff) | |
download | gitlab-ce-a8cf4e13b33da8d71e16874ebf3dce9ca9d40b76.tar.gz |
adds basic functionality to the new endpoint of the api
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 3a1837effd8..77e407b54c5 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -287,23 +287,6 @@ module API # Projects helpers - def filter_params(projects) - project_entries = [] - - # Removes the redundant information of the object - projects.each do |project| - entry = { - id: project.id, - http_url_to_repo: project.http_url_to_repo, - name_with_namespace: project.name_with_namespace - } - - project_entries << entry - end - - project_entries - end - def filter_projects(projects) # If the archived parameter is passed, limit results accordingly if params[:archived].present? |