Commit 8f929b87 authored by Valery Sizov's avatar Valery Sizov

one more improvement to snippet search

parent 94af78ac
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment