diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-23 15:09:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-23 15:09:20 +0300 |
commit | b7e512c8970dcce6feabc096885c7a1ea91e4694 (patch) | |
tree | 6efe91e491d584dba8a6d35b9bd19111adf4e519 /app/models/snippet.rb | |
parent | 698ab7c4bba77ffc98c14360269167092b2ebe01 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index b63ab003711..10b9b4eae3d 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -44,6 +44,7 @@ class Snippet < ApplicationRecord has_many :notes, as: :noteable, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent has_many :user_mentions, class_name: "SnippetUserMention", dependent: :delete_all # rubocop:disable Cop/ActiveRecordDependent has_one :snippet_repository, inverse_of: :snippet + has_one :statistics, class_name: 'SnippetStatistics' delegate :name, :email, to: :author, prefix: true, allow_nil: true |