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
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actioncable-5.0.1/lib/rails/generators/channel/templates/channel.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actioncable-5.0.1/lib/rails/generators/channel/templates/channel.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actioncable-5.0.1/lib/rails/generators/channel/templates/channel.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actioncable-5.0.1/lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.1 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.1.rc2 lib/rails/generators/channel/templates/channel.rb
actioncable-5.0.1.rc1 lib/rails/generators/channel/templates/channel.rb