Module: RailsDataConnection

Defined in:
app/channels/rails_data_connection.rb

Overview

prepend this module

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepended(model) ⇒ Object



4
5
6
# File 'app/channels/rails_data_connection.rb', line 4

def self.prepended(model)
  model.identified_by :current_user
end

Instance Method Details

#connectObject



8
9
10
11
# File 'app/channels/rails_data_connection.rb', line 8

def connect
  self.current_user = find_verified_user
  super
end