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

Update README find_verified_user example

This commit is contained in:
Tair Assimov 2015-12-08 10:48:07 +01:00
parent 928aed6e2a
commit a3d293b4b3

View file

@ -54,7 +54,7 @@ module ApplicationCable
protected
def find_verified_user
if current_user = User.find(cookies.signed[:user_id])
if current_user = User.find_by(id: cookies.signed[:user_id])
current_user
else
reject_unauthorized_connection