Sha256: e5eb8a87755621f15b8a711b9b73101349c90976de5a0c5537ed3d108ba103fb

Contents?: true

Size: 309 Bytes

Versions: 227

Compression:

Stored size: 309 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Channel < ApplicationCable::Channel
  def subscribed
    # stream_from "some_channel"
  end

  def unsubscribed
    # Any cleanup needed when channel is unsubscribed
  end
<% actions.each do |action| -%>

  def <%= action %>
  end
<% end -%>
end
<% end -%>

Version data entries

227 entries across 222 versions & 16 rubygems

Version Path
actioncable-8.0.0 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.2.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.5 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-8.0.0.rc2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.2.1.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.4.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.8.6 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.7.10 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-8.0.0.rc1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.7.9 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.2.1.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.4.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.8.5 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-next-0.1.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-next-0.1.0 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-8.0.0.beta1 lib/rails/generators/channel/templates/channel.rb.tt
omg-actioncable-8.0.0.alpha9 lib/rails/generators/channel/templates/channel.rb.tt
omg-actioncable-8.0.0.alpha8 lib/rails/generators/channel/templates/channel.rb.tt
omg-actioncable-8.0.0.alpha7 lib/rails/generators/channel/templates/channel.rb.tt
omg-actioncable-8.0.0.alpha4 lib/rails/generators/channel/templates/channel.rb.tt