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
1 parent 96b03ec commit fe0c540ad5dfb772b13fd1fabd63d6f9cd2562e8
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 fe0c540

Please sign in to comment.