Remove now unused `is_subscribed` method

This commit is contained in:
Karina Kwiatek 2023-02-17 09:08:13 +01:00
parent 0771c689ea
commit 904eab8daa
1 changed files with 0 additions and 9 deletions

View File

@ -7,15 +7,6 @@ class Subscription < ApplicationRecord
Subscription.where(answer: target)
end
def is_subscribed(recipient, target)
existing = Subscription.find_by(user: recipient, answer: target)
if existing.nil?
false
else
existing.is_active
end
end
def subscribe(recipient, target, force = true)
existing = Subscription.find_by(user: recipient, answer: target)
if existing.nil?