summaryrefslogtreecommitdiff
path: root/app/models/concerns/issuable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r--app/models/concerns/issuable.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb
index affc4a842a7..86ab84615ba 100644
--- a/app/models/concerns/issuable.rb
+++ b/app/models/concerns/issuable.rb
@@ -149,6 +149,10 @@ module Issuable
notes.awards.where(note: "thumbsup").count
end
+ def subscribed_without_subscriptions?(user)
+ participants(user).include?(user)
+ end
+
def to_hook_data(user)
hook_data = {
object_kind: self.class.name.underscore,
@@ -179,12 +183,6 @@ module Issuable
end
end
- # Labels that are currently applied to this object
- # that are not present in `old_labels`
- def added_labels(old_labels)
- self.labels - old_labels
- end
-
# Convert this Issuable class name to a format usable by Ability definitions
#
# Examples: