Sha256: 23d21a81776dd1a8f32b681e587081e22a2549377bd3f7ef57ce1a44d04095dd
Contents?: true
Size: 568 Bytes
Versions: 14
Compression:
Stored size: 568 Bytes
Contents
if defined?(ActionCable) # Action Cable API channel to subscribe broadcasted notifications. class ActivityNotification::NotificationApiChannel < ActivityNotification::NotificationChannel # ActionCable::Channel::Base#subscribed # @see https://api.rubyonrails.org/classes/ActionCable/Channel/Base.html#method-i-subscribed def subscribed stream_from "#{ActivityNotification.config.notification_api_channel_prefix}_#{@target.to_class_name}#{ActivityNotification.config.composite_key_delimiter}#{@target.id}" rescue reject end end end
Version data entries
14 entries across 14 versions & 1 rubygems