Class: Marty::NotificationChannel
- Inherits:
-
ApplicationCable::Channel
- Object
- ActionCable::Channel::Base
- ApplicationCable::Channel
- Marty::NotificationChannel
- Defined in:
- app/channels/marty/notification_channel.rb
Instance Method Summary collapse
Instance Method Details
#subscribed ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/channels/marty/notification_channel.rb', line 3 def subscribed reject && return unless Rails.application.config.marty.enable_action_cable reject && return if current_user.blank? stream_from "marty_notifications_#{current_user.id}" end |