Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/discussion_note.rb')
-rw-r--r--app/models/discussion_note.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/discussion_note.rb b/app/models/discussion_note.rb
index fa830179022..7e17a9c759e 100644
--- a/app/models/discussion_note.rb
+++ b/app/models/discussion_note.rb
@@ -7,6 +7,8 @@ class DiscussionNote < Note
# This prepend must stay here because the `validates` below depends on it.
prepend_mod_with('DiscussionNote') # rubocop: disable Cop/InjectEnterpriseEditionModule
+ self.allow_legacy_sti_class = true
+
# Names of all implementers of `Noteable` that support discussions.
def self.noteable_types
%w[MergeRequest Issue Commit Snippet AbuseReport]