Class: PaidChannel

Inherits:
ApplicationCable::Channel
  • Object
show all
Defined in:
app/channels/paid_channel.rb

Instance Method Summary collapse

Instance Method Details

#subscribedObject



3
4
5
# File 'app/channels/paid_channel.rb', line 3

def subscribed
  stream_from "paid:#{current_receiver.id}" if current_receiver
end