Fix autoloading issue in test environment

Always prefer to use the full class namespace when specifying a
superclass inside a module, because autoloading can occur in a
different order between execution environments.
parent 31a87ef8
module Gitlab
module Elastic
class ProjectSearchResults < SearchResults
# Always prefer to use the full class namespace when specifying a
# superclass inside a module, because autoloading can occur in a
# different order between execution environments.
class ProjectSearchResults < Gitlab::Elastic::SearchResults
attr_reader :project, :repository_ref
def initialize(current_user, project_id, query, repository_ref = nil)
......
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