aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-12-07 03:18:15 +1030
committerGitHub <noreply@github.com>2016-12-07 03:18:15 +1030
commita8380f12dbd15f725343850b87b3b44df6f2615d (patch)
treed847ad797613e581ce613a341d7539b2b3e51f98 /actioncable
parentcf6c2948d5e0e0d40a03f6858179a659a0a6ed7a (diff)
parent72573066231be9c2e392747a5c6af738bff34e4c (diff)
downloadrails-a8380f12dbd15f725343850b87b3b44df6f2615d.tar.gz
rails-a8380f12dbd15f725343850b87b3b44df6f2615d.tar.bz2
rails-a8380f12dbd15f725343850b87b3b44df6f2615d.zip
Merge pull request #27285 from MSP-Greg/MSP-Greg_doc1
ActionCable::Connection::Base doc code sample syntax error
Diffstat (limited to 'actioncable')
-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