15 lines
323 B
Ruby
15 lines
323 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Search
|
|
class SnippetService < Search::GlobalService
|
|
def execute
|
|
Gitlab::SnippetSearchResults.new(current_user, params[:search])
|
|
end
|
|
|
|
def scope
|
|
@scope ||= 'snippet_titles'
|
|
end
|
|
end
|
|
end
|
|
|
|
Search::SnippetService.prepend_if_ee('::EE::Search::SnippetService')
|