1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #28569 from HarryCollins/patch-1

Update Action Cable README.md - typo fix [ci skip]
This commit is contained in:
Ryuta Kamizono 2017-03-25 20:11:51 +09:00 committed by GitHub
commit 296d024b4e

View file

@ -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