diff options
Diffstat (limited to 'app/models/project_snippet.rb')
-rw-r--r-- | app/models/project_snippet.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project_snippet.rb b/app/models/project_snippet.rb index 7a80ad33d68..0f3c22bbb92 100644 --- a/app/models/project_snippet.rb +++ b/app/models/project_snippet.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class ProjectSnippet < Snippet + self.allow_legacy_sti_class = true + belongs_to :project validates :project, presence: true |