diff options
Diffstat (limited to 'app/models/concerns/issuable.rb')
-rw-r--r-- | app/models/concerns/issuable.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index e89dcbf9acb..c74d9cb9917 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -134,9 +134,9 @@ module Issuable end def subscribe_status(user) - sub = subscribes.find_by_user_id(user.id) - if sub - return sub.subscribed + subscribe = subscribes.find_by_user_id(user.id) + if subscribe + return subscribe.subscribed end participants.include?(user) |