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:
parent
928aed6e2a
commit
a3d293b4b3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue