Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-14 00:53:06 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 19:58:26 +0300
commit9b288238549dac5b59fd467f6ee1fdc53b6c783e (patch)
treeb858ce511d479f1d53873032dc8dc0094bf10d67 /lib/api/labels.rb
parent68f30b2fff362805568588f416709e7000d75ce3 (diff)
List all available labels to the project on the labels API
Diffstat (limited to 'lib/api/labels.rb')
-rw-r--r--lib/api/labels.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/labels.rb b/lib/api/labels.rb
index c806829d69e..642e6345b9e 100644
--- a/lib/api/labels.rb
+++ b/lib/api/labels.rb
@@ -11,7 +11,7 @@ module API
# Example Request:
# GET /projects/:id/labels
get ':id/labels' do
- present user_project.labels, with: Entities::Label, current_user: current_user
+ present available_labels, with: Entities::Label, current_user: current_user
end
# Creates a new label