Commit 2d6914ed authored by Douwe Maan's avatar Douwe Maan

Merge branch 'resolve-abstract-reference-filter-diffs' into 'master'

Move EE code out of AbstractReferenceFilter

See merge request gitlab-org/gitlab-ee!9769
parents a6a39a1e 9d352b1b
# frozen_string_literal: true
module EE
module Banzai
module Filter
module AbstractReferenceFilter
extend ::Gitlab::Utils::Override
override :current_project_namespace_path
def current_project_namespace_path
@current_project_namespace_path ||= (project&.namespace || group)&.full_path
end
end
end
end
end
......@@ -327,7 +327,7 @@ module Banzai
end
def current_project_namespace_path
@current_project_namespace_path ||= (project&.namespace || group)&.full_path
@current_project_namespace_path ||= project&.namespace&.full_path
end
private
......@@ -359,3 +359,5 @@ module Banzai
end
end
end
Banzai::Filter::AbstractReferenceFilter.prepend(EE::Banzai::Filter::AbstractReferenceFilter)
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