mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
add line break between method of generated channel js
``` # before App.appearance = App.cable.subscriptions.create "AppearanceChannel", connected: -> # Called when the subscription is ready for use on the server disconnected: -> # Called when the subscription has been terminated by the server received: (data) -> # Called when there's incoming data on the websocket for this channel appear: -> @perform 'appear' away: -> @perform 'away' ``` ``` # after App.appearance = App.cable.subscriptions.create "AppearanceChannel", connected: -> # Called when the subscription is ready for use on the server disconnected: -> # Called when the subscription has been terminated by the server received: (data) -> # Called when there's incoming data on the websocket for this channel appear: -> @perform 'appear' away: -> @perform 'away' ```
This commit is contained in:
parent
13007e57ba
commit
4a7bd88eaf
1 changed files with 1 additions and 1 deletions
|
@ -7,8 +7,8 @@ App.<%= class_name.underscore %> = App.cable.subscriptions.create "<%= class_nam
|
|||
|
||||
received: (data) ->
|
||||
# Called when there's incoming data on the websocket for this channel
|
||||
|
||||
<% actions.each do |action| -%>
|
||||
|
||||
<%= action %>: ->
|
||||
@perform '<%= action %>'
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue