1
0
Fork 0
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:
David Heinemeier Hansson 2015-06-20 16:34:27 +02:00
parent 294a277a84
commit f6daf0ef6d

View file

@ -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