summaryrefslogtreecommitdiffstats
path: root/app/lib/potential_friendship_tracker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/potential_friendship_tracker.rb')
-rw-r--r--app/lib/potential_friendship_tracker.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/lib/potential_friendship_tracker.rb b/app/lib/potential_friendship_tracker.rb
index 017a9748d5f..188aa4a2756 100644
--- a/app/lib/potential_friendship_tracker.rb
+++ b/app/lib/potential_friendship_tracker.rb
@@ -11,6 +11,8 @@ class PotentialFriendshipTracker
}.freeze
class << self
+ include Redisable
+
def record(account_id, target_account_id, action)
return if account_id == target_account_id
@@ -31,11 +33,5 @@ class PotentialFriendshipTracker
return [] if account_ids.empty?
Account.searchable.where(id: account_ids)
end
-
- private
-
- def redis
- Redis.current
- end
end
end