Permalink
Browse files

Merge pull request #28571 from y-yagi/rename_local_current_user_to_ve…

…rified_user_guide

Rename local variable name `current_user` to `verified_user` [ci skip]
  • Loading branch information...
kaspth committed Mar 25, 2017
2 parents 22b47b3 + c096262 commit 720a69790dd499db064bf8f4cb395e0fbe9bebdf
Showing with 3 additions and 3 deletions.
  1. +3 −3 guides/source/action_cable_overview.md
@@ -6,7 +6,7 @@ incorporate real-time features into your Rails application.
After reading this guide, you will know:
* What Action Cable is and its integration on backend and frontend
* What Action Cable is and its integration on backend and frontend
* How to setup Action Cable
* How to setup channels
* Deployment and Architecture setup for running Action Cable
@@ -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

0 comments on commit 720a697

Please sign in to comment.