diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-10 13:58:10 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-10 13:58:10 -0500 |
commit | db25c17036b47cc4ee0bd08b7dc70def25d9a3c9 (patch) | |
tree | e3cbcf3f34bf1ff043d5947bc0da434da8a4c0ca /app/models/concerns/issuable.rb | |
parent | 74520f23db51c95b4aea8856fb51c4246785f776 (diff) | |
parent | e3911a1896d8725f7b739929b7de1ab09917eed5 (diff) | |
download | gitlab-ce-db25c17036b47cc4ee0bd08b7dc70def25d9a3c9.tar.gz |
Merge remote-tracking branch 'origin/master' into send-incremental-build-log
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r-- | app/models/concerns/issuable.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index 2e4efc4e8d8..7a3db742030 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -160,6 +160,10 @@ module Issuable notes.awards.where(note: "thumbsup").count end + def user_notes_count + notes.user.count + end + def subscribed_without_subscriptions?(user) participants(user).include?(user) end |