Class: ActivityNotification::NotificationChannel
- Inherits:
-
Object
- Object
- ActivityNotification::NotificationChannel
- Defined in:
- app/channels/activity_notification/notification_channel.rb
Overview
Action Cable channel to subscribe broadcasted notifications.
Direct Known Subclasses
Instance Method Summary collapse
-
#subscribed ⇒ Object
ActionCable::Channel::Base#subscribed.
Instance Method Details
#subscribed ⇒ Object
ActionCable::Channel::Base#subscribed
9 10 11 12 13 |
# File 'app/channels/activity_notification/notification_channel.rb', line 9 def subscribed stream_from "#{ActivityNotification.config.notification_channel_prefix}_#{@target.to_class_name}#{ActivityNotification.config.composite_key_delimiter}#{@target.id}" rescue reject end |