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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-23 15:09:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-23 15:09:20 +0300
commitb7e512c8970dcce6feabc096885c7a1ea91e4694 (patch)
tree6efe91e491d584dba8a6d35b9bd19111adf4e519 /app/models/snippet.rb
parent698ab7c4bba77ffc98c14360269167092b2ebe01 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r--app/models/snippet.rb1
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