<%module_namespacingdo-%>class<%=class_name%>Channel<ApplicationCable::Channeldefsubscribed# stream_from "some_channel"enddefunsubscribed# Any cleanup needed when channel is unsubscribedend<%actions.eachdo|action|-%>def<%=action%>end<%end-%>end<%end-%>