提交 a3d293b4 编写于 作者: T Tair Assimov

Update README find_verified_user example

上级 928aed6e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册