Permalink
Browse files

Revert "Merge pull request #28569 from HarryCollins/patch-1"

This reverts commit 296d024, reversing
changes made to e341d83.

We aren't trying to compare to current_user, we're assigning that variable.
  • Loading branch information...
kaspth committed Mar 25, 2017
1 parent 09436fb commit b2427967650090efb8bb614dae002e77e15846f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 actioncable/README.md
View
@@ -53,7 +53,7 @@ module ApplicationCable
private
def find_verified_user
if current_user == User.find_by(id: cookies.signed[:user_id])
if current_user = User.find_by(id: cookies.signed[:user_id])
current_user
else
reject_unauthorized_connection

0 comments on commit b242796

Please sign in to comment.