diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-25 20:48:34 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-25 20:48:34 +0900 |
commit | bdbee0b8e5833450764c9f0298d42f53d80c5018 (patch) | |
tree | 212c650e152ddbc90257d22d2aac896fc2d352a4 /actioncable | |
parent | b2427967650090efb8bb614dae002e77e15846f9 (diff) | |
download | rails-bdbee0b8e5833450764c9f0298d42f53d80c5018.tar.gz rails-bdbee0b8e5833450764c9f0298d42f53d80c5018.tar.bz2 rails-bdbee0b8e5833450764c9f0298d42f53d80c5018.zip |
Rename local variable name `current_user` to `verified_user` [ci skip]
Assigning local variable named `current_user` in the condition is
confusing.
Diffstat (limited to 'actioncable')
-rw-r--r-- | actioncable/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/README.md b/actioncable/README.md index c55b7dc57b..e044f54b45 100644 --- a/actioncable/README.md +++ b/actioncable/README.md @@ -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 |