Module: ActiveRecord::Tenanted::CableConnection::Base

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_record/tenanted/cable_connection.rb

Overview

this module is included into ActionCable::Connection::Base

Instance Method Summary collapse

Instance Method Details

#connectObject



15
16
17
18
# File 'lib/active_record/tenanted/cable_connection.rb', line 15

def connect
  # If Rails had a before_connect hook, this could be moved there.
  set_current_tenant if connection_class && tenant_resolver
end