Permalink
Browse files

Merge pull request #28570 from kamipo/rename_local_current_user_to_ve…

…rified_user

Rename local variable name `current_user` to `verified_user` [ci skip]
  • Loading branch information...
kaspth committed Mar 25, 2017
2 parents b242796 + bdbee0b commit 22b47b3b6b5538cb8e348668dd1efe0ffd716ffa
Showing with 2 additions and 2 deletions.
  1. +2 −2 actioncable/README.md
View
@@ -53,8 +53,8 @@ module ApplicationCable
private
def find_verified_user
if current_user = User.find_by(id: cookies.signed[:user_id])
current_user
if verified_user = User.find_by(id: cookies.signed[:user_id])
verified_user
else
reject_unauthorized_connection
end

0 comments on commit 22b47b3

Please sign in to comment.