aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-03-25 13:32:52 +0100
committerGitHub <noreply@github.com>2017-03-25 13:32:52 +0100
commit720a69790dd499db064bf8f4cb395e0fbe9bebdf (patch)
treec8a87dfa93a41d9370df1d5192fc518521ab61ac /guides
parent22b47b3b6b5538cb8e348668dd1efe0ffd716ffa (diff)
parentc096262f614a0c307f89691e9b8e976b3be3f89f (diff)
downloadrails-720a69790dd499db064bf8f4cb395e0fbe9bebdf.tar.gz
rails-720a69790dd499db064bf8f4cb395e0fbe9bebdf.tar.bz2
rails-720a69790dd499db064bf8f4cb395e0fbe9bebdf.zip
Merge pull request #28571 from y-yagi/rename_local_current_user_to_verified_user_guide
Rename local variable name `current_user` to `verified_user` [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_cable_overview.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md
index e929945dd0..50a28571b4 100644
--- a/guides/source/action_cable_overview.md
+++ b/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