diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-21 06:10:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-21 06:10:16 +0300 |
commit | f2eb66fef8aa8cebea25bc9e671a1f146514682f (patch) | |
tree | ef3f5ad9803bb211acdfd9f0f013c987f43d8e97 /lib/gitlab/project_search_results.rb | |
parent | c7a46b04196859929e8e4c04fbcbf8490f228edf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/project_search_results.rb')
-rw-r--r-- | lib/gitlab/project_search_results.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb index f8141278e48..833065547c6 100644 --- a/lib/gitlab/project_search_results.rb +++ b/lib/gitlab/project_search_results.rb @@ -4,11 +4,11 @@ module Gitlab class ProjectSearchResults < SearchResults attr_reader :project, :repository_ref - def initialize(current_user, project, query, repository_ref = nil) - @current_user = current_user + def initialize(current_user, query, project:, repository_ref: nil) @project = project @repository_ref = repository_ref.presence - @query = query + + super(current_user, query, [project]) end def objects(scope, page: nil, per_page: DEFAULT_PER_PAGE, preload_method: nil) |