Rename friends_with to follows
This commit is contained in:
parent
4370fe45ad
commit
bc630bca87
7 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue