diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-03-25 12:40:53 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2017-03-25 12:40:53 +0100 |
commit | b2427967650090efb8bb614dae002e77e15846f9 (patch) | |
tree | ac8ebe1160552f684d5d8f46164dabfa785dfaad /actioncable | |
parent | 09436fb6d6d188739b40ef120b4344106d81caf9 (diff) | |
download | rails-b2427967650090efb8bb614dae002e77e15846f9.tar.gz rails-b2427967650090efb8bb614dae002e77e15846f9.tar.bz2 rails-b2427967650090efb8bb614dae002e77e15846f9.zip |
Revert "Merge pull request #28569 from HarryCollins/patch-1"
This reverts commit 296d024b4e91c4891ae0b010249193513e63b921, reversing
changes made to e341d835070c7ef9990f41e02bbf46536be0aee7.
We aren't trying to compare to current_user, we're assigning that variable.
Diffstat (limited to 'actioncable')
-rw-r--r-- | actioncable/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/README.md b/actioncable/README.md index 55e79fc580..c55b7dc57b 100644 --- a/actioncable/README.md +++ b/actioncable/README.md @@ -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 |