diff options
author | Valery Sizov <valery@gitlab.com> | 2016-02-05 18:27:12 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-02-05 18:27:12 +0200 |
commit | 8f929b8747daf446bb6d31197e69f8948b951189 (patch) | |
tree | a82d85134f7ac6d5ffe7055f875280d0cc2129ad | |
parent | 94af78ac4a7a0b76eb370a22320ee6410b6a4695 (diff) | |
download | gitlab-ce-8f929b8747daf446bb6d31197e69f8948b951189.tar.gz |
one more improvement to snippet search
-rw-r--r-- | lib/gitlab/snippet_search_results.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/snippet_search_results.rb b/lib/gitlab/snippet_search_results.rb index cadb010ef03..addda95be2b 100644 --- a/lib/gitlab/snippet_search_results.rb +++ b/lib/gitlab/snippet_search_results.rb @@ -12,7 +12,7 @@ module Gitlab def objects(scope, page = nil) case scope when 'snippet_titles' - Kaminari.paginate_array(snippet_titles).page(page).per(per_page) + snippet_titles.page(page).per(per_page) when 'snippet_blobs' snippet_blobs.page(page).per(per_page) else |