1. 19 12月, 2015 1 次提交
  2. 18 12月, 2015 6 次提交
    • Y
      add line break between method of generated channel js · 4a7bd88e
      yuuji.yaginuma 提交于
      ```
      # 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'
      ```
      4a7bd88e
    • A
      [ci skip] Fix grammar · ebad5c72
      Akshay Vishnoi 提交于
      ebad5c72
    • A
      [ci skip] Fix typo · 2728377d
      Akshay Vishnoi 提交于
      2728377d
    • D
      Should also stub the received callback · e16d7c68
      David Heinemeier Hansson 提交于
      e16d7c68
    • E
      Don't log Action Cable to STDOUT in development · 19e7f65d
      eileencodes 提交于
      Logging Action Cable to STDOUT caused the development log to see double
      messages like this:
      
      ```
      Started GET "/" for ::1 at 2015-12-17 15:21:34 -0500
      Started GET "/" for ::1 at 2015-12-17 15:21:34 -0500
      Processing by Rails::WelcomeController#index as HTML
      Processing by Rails::WelcomeController#index as HTML
      Rendered /welcome/index.html.erb (0.0ms)
      Rendered /welcome/index.html.erb (0.0ms)
      Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms)
      Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms)
      ```
      
      Now that Action Cable is part of Rails it doesn't need it's own logger
      and will log to STDOUT via the local dev server here:
      https://github.com/rails/rails/blob/master/railties/lib/rails/commands/server.rb
      19e7f65d
    • G
  3. 17 12月, 2015 13 次提交
  4. 16 12月, 2015 10 次提交
  5. 15 12月, 2015 4 次提交
  6. 14 12月, 2015 1 次提交