Fix some rubocop Naming/PredicateName warnings
This commit is contained in:
parent
aef7439c56
commit
cbcc7dc49f
21 changed files with 38 additions and 43 deletions
|
@ -258,7 +258,7 @@ class User < ApplicationRecord
|
|||
OSM::GreatCircle.new(home_lat, home_lon).distance(nearby_user.home_lat, nearby_user.home_lon)
|
||||
end
|
||||
|
||||
def is_friends_with?(new_friend)
|
||||
def friends_with?(new_friend)
|
||||
friendships.exists?(:befriendee => new_friend)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue