diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-26 20:10:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-26 20:10:28 +0200 |
commit | 45e333ce98aa2c4c6be4858345b4ca415a200ed2 (patch) | |
tree | d7be7efb78d22c6168e8bfa9624985c87a78f7b2 /app/models/snippet.rb | |
parent | b2cc24ba7aa79a4a01bdd0945ee5a7d76a07f056 (diff) | |
download | gitlab-ce-participants-table.tar.gz |
Use participants from database table instead of parsing all commentsparticipants-table
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index b0831982aa7..998d24d3cb4 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -49,8 +49,6 @@ class Snippet < ActiveRecord::Base scope :expired, -> { where(["expires_at IS NOT NULL AND expires_at < ?", Time.current]) } scope :non_expired, -> { where(["expires_at IS NULL OR expires_at > ?", Time.current]) } - participant :author, :notes - def self.reference_prefix '$' end |