Rename friends_with to follows

This commit is contained in:
Tom Hughes 2025-01-17 22:42:35 +00:00
parent 4370fe45ad
commit bc630bca87
7 changed files with 16 additions and 16 deletions

View file

@ -282,8 +282,8 @@ class User < ApplicationRecord
OSM::GreatCircle.new(home_lat, home_lon).distance(nearby_user.home_lat, nearby_user.home_lon)
end
def friends_with?(new_friend)
follows.exists?(:following => new_friend)
def follows?(user)
follows.exists?(:following => user)
end
##