diff options
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 076abae9bb0..f09c4607956 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -31,10 +31,8 @@ class Snippet < ActiveRecord::Base scope :public_and_internal, -> { where(visibility_level: [Snippet::PUBLIC, Snippet::INTERNAL]) } scope :fresh, -> { order("created_at DESC") } - participant :author, index: 0 - participant :note_authors, index: 1 - - attr_mentionable :notes_with_associations + participant :author + participant :notes_with_associations def self.reference_prefix '$' @@ -108,10 +106,6 @@ class Snippet < ActiveRecord::Base notes.includes(:author, :project) end - def note_authors - User.where(id: notes.select(:author_id)) - end - class << self # Searches for snippets with a matching title or file name. # |