]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Merge remote-tracking branch 'upstream/pull/2773'
[rails.git] / app / models / user.rb
index 518cb94ccf29a81223671520c23dd09d5c467d1d..92fb3287b59e8c88e6a7783caa461c28354c8b35 100644 (file)
@@ -218,7 +218,7 @@ class User < ApplicationRecord
   end
 
   def is_friends_with?(new_friend)
   end
 
   def is_friends_with?(new_friend)
-    friendships.where(:befriendee => new_friend).exists?
+    friendships.exists?(:befriendee => new_friend)
   end
 
   ##
   end
 
   ##