Skip to content

Commit

Permalink
Revert "Merge pull request #28569 from HarryCollins/patch-1"
Browse files Browse the repository at this point in the history
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 b242796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actioncable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b242796

Please sign in to comment.