Sha256: 757c344d00f581003047310bd219d7afb012bdb20307c5d85a84b92208a61085
Contents?: true
Size: 435 Bytes
Versions: 8
Compression:
Stored size: 435 Bytes
Contents
# Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading. <% 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
8 entries across 8 versions & 2 rubygems