class Noticed::NotificationChannel
Public Instance Methods
mark_as_read(data)
click to toggle source
# File lib/noticed/notification_channel.rb, line 11 def mark_as_read(data) current_user.notifications.where(id: data["ids"]).mark_as_read! end
subscribed()
click to toggle source
# File lib/noticed/notification_channel.rb, line 3 def subscribed stream_for current_user end
unsubscribed()
click to toggle source
# File lib/noticed/notification_channel.rb, line 7 def unsubscribed stop_all_streams end