mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Assume channel names include the _channel extension
This commit is contained in:
parent
294a277a84
commit
f6daf0ef6d
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
class @Cable.Channel
|
||||
constructor: (params = {}) ->
|
||||
@channelName ?= @underscore @constructor.name
|
||||
@channelName ?= "#{@underscore(@constructor.name)}_channel"
|
||||
|
||||
params['channel'] = @channelName
|
||||
@channelIdentifier = JSON.stringify params
|
||||
|
|
Loading…
Reference in a new issue