X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/040302286f0fab0f9a4e448b5a9d835f2b6e106c..07feac3cd93d28cf3db4cc847b8289657db37094:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 518cb94cc..92fb3287b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -218,7 +218,7 @@ class User < ApplicationRecord end def is_friends_with?(new_friend) - friendships.where(:befriendee => new_friend).exists? + friendships.exists?(:befriendee => new_friend) end ##