1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/assets/javascripts/cable.coffee
Rafael Mendonça França eb8c713c98 .js.coffee -> .coffee
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.
2015-09-02 02:57:38 -03:00

8 lines
134 B
CoffeeScript

#= require_self
#= require cable/consumer
@Cable =
PING_IDENTIFIER: "_ping"
createConsumer: (url) ->
new Cable.Consumer url