mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
eb8c713c98
It was initially required, but support for the shorthand has been supported since sprockets 2.1. Eventually 4.x will only support the shorthand version. Just want to get new people using the prefer stuff ASAP.
8 lines
134 B
CoffeeScript
8 lines
134 B
CoffeeScript
#= require_self
|
|
#= require cable/consumer
|
|
|
|
@Cable =
|
|
PING_IDENTIFIER: "_ping"
|
|
|
|
createConsumer: (url) ->
|
|
new Cable.Consumer url
|