mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rename local variable name current_user
to verified_user
[ci skip]
Related #28570
This commit is contained in:
parent
22b47b3b6b
commit
c096262f61
1 changed files with 3 additions and 3 deletions
|
@ -64,8 +64,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
|
||||
|
|
Loading…
Reference in a new issue