Sha256: e73be8e9a31952b7d39e08e297e3fe77d9684aa0e72f7d611f546b11850cedab
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 Bytes
Contents
# Be sure to restart your server when you modify this file. Action Cable runs in an EventMachine 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
3 entries across 3 versions & 1 rubygems