diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-06-04 14:41:37 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-04 14:41:37 +0300 |
commit | 7350eb1fa83662d4aaa7541acb387b3742ba9788 (patch) | |
tree | 881a23cd8807f2247707c875bc1be1502ff04ace /lib/api | |
parent | 0b4f9ff4068af6776b495d9332aeecf58e48786f (diff) |
Add ability to search wiki titles
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/search.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/api/search.rb b/lib/api/search.rb index 5d9ec617cb7..37fbabe419c 100644 --- a/lib/api/search.rb +++ b/lib/api/search.rb @@ -34,9 +34,7 @@ module API def process_results(results) case params[:scope] - when 'wiki_blobs' - paginate(results).map { |blob| Gitlab::ProjectSearchResults.parse_search_result(blob, user_project) } - when 'blobs' + when 'blobs', 'wiki_blobs' paginate(results).map { |blob| blob[1] } else paginate(results) |