Class: ActiveModel::Pusher::RecordChannel
- Inherits:
-
Object
- Object
- ActiveModel::Pusher::RecordChannel
- Defined in:
- lib/active_model/pusher/record_channel.rb
Constant Summary collapse
- CHANNEL_COLUMN =
:channel
Instance Method Summary collapse
- #channel ⇒ Object
-
#initialize(record, event) ⇒ RecordChannel
constructor
A new instance of RecordChannel.
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
#channel ⇒ Object
11 12 13 |
# File 'lib/active_model/pusher/record_channel.rb', line 11 def channel from_record_channel_column || from_record_class_name end |