Sha256: 72cd13d01dfe271f774e548155b2d8da447b07497dec52c27d6c42fe18cc8b17

Contents?: true

Size: 219 Bytes

Versions: 5

Compression:

Stored size: 219 Bytes

Contents

module Marty
  class NotificationChannel < ::ApplicationCable::Channel
    def subscribed
      reject && return unless current_user.present?
      stream_from "marty_notifications_#{current_user.id}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
marty-9.3.0 app/channels/marty/notification_channel.rb
marty-8.5.0 app/channels/marty/notification_channel.rb
marty-8.4.1 app/channels/marty/notification_channel.rb
marty-8.3.1 app/channels/marty/notification_channel.rb
marty-8.2.0 app/channels/marty/notification_channel.rb