]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Fix some rubocop Naming/PredicateName warnings
[rails.git] / app / models / user.rb
index e7e077a9b7f20f20420ead56ddf738b8e353e914..d357dc4f5017d3bc35f298c99bb0a1b1247568a3 100644 (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