Fix some new rubocop warnings
This commit is contained in:
parent
c03ba5f6b8
commit
ea59d95f4a
23 changed files with 99 additions and 81 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue