diff options
author | Alejandro RodrÃguez <alejandroluis24@gmail.com> | 2016-04-04 23:37:50 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejandroluis24@gmail.com> | 2016-04-20 22:12:43 -0300 |
commit | 4cab66e3e2ca53c2d96a5306b6ae6cd864c5a39d (patch) | |
tree | 0b7f7d42e9f60c7e86e5ad212c37020c9b2c5065 /app/services/projects | |
parent | 1ff896f2bf5d06d0d772fd0df98bf43edf107373 (diff) | |
download | gitlab-ce-4cab66e3e2ca53c2d96a5306b6ae6cd864c5a39d.tar.gz |
Implementing autocomplete for GFM milestone references
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/autocomplete_service.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/services/projects/autocomplete_service.rb b/app/services/projects/autocomplete_service.rb index ba50305dbd5..eec38c5c3d8 100644 --- a/app/services/projects/autocomplete_service.rb +++ b/app/services/projects/autocomplete_service.rb @@ -4,6 +4,10 @@ module Projects @project.issues.visible_to_user(current_user).opened.select([:iid, :title]) end + def milestones + @project.milestones.active.select([:iid, :title]) + end + def merge_requests @project.merge_requests.opened.select([:iid, :title]) end |