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-7.0.8.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.7.7 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.3 lib/rails/generators/channel/templates/channel.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-7.0.3.1/lib/rails/generators/channel/templates/channel.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-7.0.2.3/lib/rails/generators/channel/templates/channel.rb.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-6.1.6.1/lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.0 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.0.rc2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.0.rc1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.1.0.beta1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.8 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.7.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.7.6 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.7.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.7.5 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.7 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.6 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-7.0.5.1 lib/rails/generators/channel/templates/channel.rb.tt