aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib
diff options
context:
space:
mode:
authorMSP-Greg <MSP-Greg@users.noreply.github.com>2016-12-06 09:41:39 -0600
committerMSP-Greg <MSP-Greg@users.noreply.github.com>2016-12-06 10:35:36 -0600
commit72573066231be9c2e392747a5c6af738bff34e4c (patch)
tree84673640c372f5b76eca53e05c129bd925a5081f /actioncable/lib
parente10617303475488974fbe635d427f793faeb3f05 (diff)
downloadrails-72573066231be9c2e392747a5c6af738bff34e4c.tar.gz
rails-72573066231be9c2e392747a5c6af738bff34e4c.tar.bz2
rails-72573066231be9c2e392747a5c6af738bff34e4c.zip
ActionCable::Connection::Base doc code sample syntax error
Diffstat (limited to 'actioncable/lib')
-rw-r--r--actioncable/lib/action_cable/connection/base.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/actioncable/lib/action_cable/connection/base.rb b/actioncable/lib/action_cable/connection/base.rb
index dfee123ea2..e1da126d64 100644
--- a/actioncable/lib/action_cable/connection/base.rb
+++ b/actioncable/lib/action_cable/connection/base.rb
@@ -24,11 +24,8 @@ module ActionCable
#
# protected
# def find_verified_user
- # if current_user = User.find_by_identity cookies.signed[:identity_id]
- # current_user
- # else
+ # User.find_by_identity(cookies.signed[:identity_id]) ||
# reject_unauthorized_connection
- # end
# end
# end
# end