diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2015-12-18 12:42:50 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2015-12-18 12:42:50 -0200 |
commit | 90101afe1ab9e8d5b241f968f164171c2d9c4fc6 (patch) | |
tree | 6db25fd5a222cbb457a1f6834e398eb98d9b0d3e /actioncable/lib/rails/generators/channel/templates/assets/channel.coffee | |
parent | 6b88b98327163230e75950a7198d2d61c6f3cd26 (diff) | |
parent | 4a7bd88eafa9cfcde843dd7d13d7f9aa88d82526 (diff) | |
download | rails-90101afe1ab9e8d5b241f968f164171c2d9c4fc6.tar.gz rails-90101afe1ab9e8d5b241f968f164171c2d9c4fc6.tar.bz2 rails-90101afe1ab9e8d5b241f968f164171c2d9c4fc6.zip |
Merge pull request #22660 from y-yagi/add_line_break_between_methods
add line break between method of generated channel js
Diffstat (limited to 'actioncable/lib/rails/generators/channel/templates/assets/channel.coffee')
-rw-r--r-- | actioncable/lib/rails/generators/channel/templates/assets/channel.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/lib/rails/generators/channel/templates/assets/channel.coffee b/actioncable/lib/rails/generators/channel/templates/assets/channel.coffee index 149821f1ea..5467811aba 100644 --- a/actioncable/lib/rails/generators/channel/templates/assets/channel.coffee +++ b/actioncable/lib/rails/generators/channel/templates/assets/channel.coffee @@ -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 -%> |