Fix some rubocop Naming/PredicateName warnings

This commit is contained in:
Tom Hughes 2022-03-03 22:47:55 +00:00
parent aef7439c56
commit cbcc7dc49f
21 changed files with 38 additions and 43 deletions

View file

@ -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