X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f419c7ab0425550146fb771a54b7ffece63c246..07feac3cd93d28cf3db4cc847b8289657db37094:/app/models/user.rb?ds=sidebyside 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 ##