aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 102a4b720e..f9861d7530 100644
--- a/README.md
+++ b/README.md
@@ -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