aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 18:23:11 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 18:23:11 +0100
commit0625d77784a0e62b491ad730e4ff8566686acf81 (patch)
treef8fda8110a3430bd57c8853e45e8ae663283f250 /actioncable/lib/rails
parent8e9b7c0405ba9e74e656145eeee0c27a68df46ca (diff)
downloadrails-0625d77784a0e62b491ad730e4ff8566686acf81.tar.gz
rails-0625d77784a0e62b491ad730e4ff8566686acf81.tar.bz2
rails-0625d77784a0e62b491ad730e4ff8566686acf81.zip
Note that changes to the cable setup requires restarting the server
Diffstat (limited to 'actioncable/lib/rails')
-rw-r--r--actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb1
-rw-r--r--actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb1
-rw-r--r--actioncable/lib/rails/generators/channel/templates/channel.rb1
3 files changed, 3 insertions, 0 deletions
diff --git a/actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb b/actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb
index b44bbb4aab..1d77819a0f 100644
--- a/actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb
+++ b/actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb
@@ -1,3 +1,4 @@
+# Be sure to restart your server when you modify this file. Action Cable runs in an EventMachine loop that does not support auto reloading.
module ApplicationCable
class Channel < ActionCable::Channel::Base
# Logic shared between all channels
diff --git a/actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb b/actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb
index be6fdf7ce4..5aab33eb33 100644
--- a/actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb
+++ b/actioncable/lib/rails/generators/channel/templates/application_cable/connection.rb
@@ -1,3 +1,4 @@
+# Be sure to restart your server when you modify this file. Action Cable runs in an EventMachine loop that does not support auto reloading.
module ApplicationCable
class Connection < ActionCable::Connection::Base
identified_by :current_user
diff --git a/actioncable/lib/rails/generators/channel/templates/channel.rb b/actioncable/lib/rails/generators/channel/templates/channel.rb
index 4bcfb2be4d..6cf04ee61f 100644
--- a/actioncable/lib/rails/generators/channel/templates/channel.rb
+++ b/actioncable/lib/rails/generators/channel/templates/channel.rb
@@ -1,3 +1,4 @@
+# Be sure to restart your server when you modify this file. Action Cable runs in an EventMachine loop that does not support auto reloading.
<% module_namespacing do -%>
class <%= class_name %>Channel < ApplicationCable::Channel
def subscribed