Skip to content

Commit

Permalink
Merge pull request #133 from assimovt/master
Browse files Browse the repository at this point in the history
Update README find_verified_user example
  • Loading branch information
dhh committed Dec 9, 2015
2 parents 928aed6 + a3d293b commit 0e283fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e283fe

Please sign in to comment.