Module: NotificationHelper
- Defined in:
- lib/real_notification/notification_helper.rb
Instance Method Summary collapse
Instance Method Details
#broadcast_notification(channel_name = 'notification_channel', data) ⇒ Object
2 3 4 |
# File 'lib/real_notification/notification_helper.rb', line 2 def broadcast_notification(channel_name = 'notification_channel', data) ActionCable.server.broadcast channel_name, data end |