1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ActionCable::Connection::Base doc code sample syntax error

This commit is contained in:
MSP-Greg 2016-12-06 09:41:39 -06:00
parent e106173034
commit 7257306623

View file

@ -24,14 +24,11 @@ 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
#
# First, we declare that this connection can be identified by its current_user. This allows us to later be able to find all connections
# established for that current_user (and potentially disconnect them). You can declare as many