Class: ActiveModel::Pusher::RecordChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/active_model/pusher/record_channel.rb

Constant Summary collapse

CHANNEL_COLUMN =
:channel

Instance Method Summary collapse

Constructor Details

#initialize(record, event) ⇒ RecordChannel

Returns a new instance of RecordChannel.



6
7
8
9
# File 'lib/active_model/pusher/record_channel.rb', line 6

def initialize(record, event)
  @record = record
  @event = event
end

Instance Method Details

#channelObject



11
12
13
# File 'lib/active_model/pusher/record_channel.rb', line 11

def channel
  from_record_channel_column || from_record_class_name
end