| Use Case | Command | Description |
|---|---|---|
| Get the channel name from a class | MyChannel.channel_name | Returns the underscored, symbol-form channel name (e.g., :my_channel) |
| Define a custom channel name | Override channel_name in class | Allows custom naming instead of the default derived name |
| Use in broadcasting | ActionCable.server.broadcast(MyChannel.channel_name, data) | Broadcast to the channel stream using the generated name |
ActiveSupport::Concern (from /home/chedong/.local/share/rdoc)
/home/chedong/.local/share/rdoc
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 20:33 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format