Commit c6d79d65 authored by Mark Chao's avatar Mark Chao

ES: Remove hack for STI bug on Snippet subclass

Related spec is passing in:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13917/
because now the configuration is stored in the centralized `Config`,
which is then used during initialization of `ApplicationClassProxy`.
No dynamic inheritance is involved, so bug is bypassed.
parent 37da2f8b
......@@ -3,5 +3,3 @@
class PersonalSnippet < Snippet
include WithUploads
end
PersonalSnippet.prepend_if_ee('EE::PersonalSnippet')
......@@ -12,5 +12,3 @@ class ProjectSnippet < Snippet
participant :author
participant :notes_with_associations
end
ProjectSnippet.prepend_if_ee('EE::ProjectSnippet')
# frozen_string_literal: true
module EE
module PersonalSnippet
extend ActiveSupport::Concern
prepended do
include Elastic::SnippetsSearch
end
end
end
# frozen_string_literal: true
module EE
module ProjectSnippet
extend ActiveSupport::Concern
prepended do
include Elastic::SnippetsSearch
end
end
end
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