We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 684de49 commit 591891eCopy full SHA for 591891e
actioncable/README.md
@@ -53,7 +53,7 @@ module ApplicationCable
53
54
private
55
def find_verified_user
56
- if current_user = User.find_by(id: cookies.signed[:user_id])
+ if current_user == User.find_by(id: cookies.signed[:user_id])
57
current_user
58
else
59
reject_unauthorized_connection
0 commit comments