Skip to content

Commit

Permalink
Merge pull request #28570 from kamipo/rename_local_current_user_to_ve…
Browse files Browse the repository at this point in the history
…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 22b47b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actioncable/README.md
Expand Up @@ -53,8 +53,8 @@ module ApplicationCable


private private
def find_verified_user def find_verified_user
if current_user = User.find_by(id: cookies.signed[:user_id]) if verified_user = User.find_by(id: cookies.signed[:user_id])
current_user verified_user
else else
reject_unauthorized_connection reject_unauthorized_connection
end end
Expand Down

0 comments on commit 22b47b3

Please sign in to comment.