Sha256: e5eb8a87755621f15b8a711b9b73101349c90976de5a0c5537ed3d108ba103fb

Contents?: true

Size: 309 Bytes

Versions: 236

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

236 entries across 231 versions & 18 rubygems

Version Path
actioncable-6.0.3.5 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-5.2.4.5 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.0 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.0.rc2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.1.0.rc1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.3.4 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-5.2.4.4 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.3.3 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.3.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.3.1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-5.2.4.3 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.3 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.3.rc1 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.2.2 lib/rails/generators/channel/templates/channel.rb.tt
actioncable-5.2.4.2 lib/rails/generators/channel/templates/channel.rb.tt
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/actioncable-6.0.2.1/lib/rails/generators/channel/templates/channel.rb.tt
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/actioncable-6.0.2.1/lib/rails/generators/channel/templates/channel.rb.tt
actioncable-6.0.2.1 lib/rails/generators/channel/templates/channel.rb.tt