Class: Motor::NotificationsChannel

Inherits:
ApplicationCable::Channel show all
Defined in:
app/channels/motor/notifications_channel.rb

Instance Method Summary collapse

Instance Method Details

#subscribedObject



5
6
7
# File 'app/channels/motor/notifications_channel.rb', line 5

def subscribed
  stream_for current_user if respond_to?(:current_user)
end