Fix some new rubocop warnings

This commit is contained in:
Tom Hughes 2020-08-06 21:56:18 +01:00
parent c03ba5f6b8
commit ea59d95f4a
23 changed files with 99 additions and 81 deletions

View file

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