Method: ActivityNotification::OptionalTarget::ActionCableApiChannel#format_message
- Defined in:
- lib/activity_notification/optional_targets/action_cable_api_channel.rb
#format_message(notification, options = {}) ⇒ Hash
Format message to broadcast
36 37 38 39 40 41 |
# File 'lib/activity_notification/optional_targets/action_cable_api_channel.rb', line 36 def (notification, = {}) { notification: notification.as_json(.merge()), group_owner: notification.group_owner? ? nil : notification.group_owner.as_json(.merge()) } end |