Class: Lanes::API::Cable::Connection
- Inherits:
-
ActionCable::Connection::Base
- Object
- ActionCable::Connection::Base
- Lanes::API::Cable::Connection
- Defined in:
- lib/lanes/api/cable.rb
Instance Method Summary collapse
Instance Method Details
#connect ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/lanes/api/cable.rb', line 20 def connect unless ['user_id'] && self.current_user = Lanes::User .where(id: ['user_id']).first Lanes.logger.warn("Rejecting ws connection due to unauthorized access by user_id #{cookies['user_id']}") end end |