aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/channel_generator.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 21:05:13 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 21:05:13 +0100
commit28035db109c35bc0bc40272c621ac3c777a62a72 (patch)
treeb4a8b11f5e96941ea629196e9e75657f44d9270c /actioncable/lib/rails/generators/channel/channel_generator.rb
parent6357437de4ea128b127dfb06fc790ee1f16270bd (diff)
downloadrails-28035db109c35bc0bc40272c621ac3c777a62a72.tar.gz
rails-28035db109c35bc0bc40272c621ac3c777a62a72.tar.bz2
rails-28035db109c35bc0bc40272c621ac3c777a62a72.zip
Generate all the ApplicationCable stubs by default, like all other Application* stubs
Diffstat (limited to 'actioncable/lib/rails/generators/channel/channel_generator.rb')
-rw-r--r--actioncable/lib/rails/generators/channel/channel_generator.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/actioncable/lib/rails/generators/channel/channel_generator.rb b/actioncable/lib/rails/generators/channel/channel_generator.rb
index 8646a5460c..2f37d8055b 100644
--- a/actioncable/lib/rails/generators/channel/channel_generator.rb
+++ b/actioncable/lib/rails/generators/channel/channel_generator.rb
@@ -10,12 +10,6 @@ module Rails
def create_channel_file
template "channel.rb", File.join('app/channels', class_path, "#{file_name}_channel.rb")
template "assets/channel.coffee", File.join('app/assets/javascripts/channels', class_path, "#{file_name}.coffee")
-
- if self.behavior == :invoke
- template "application_cable/connection.rb", 'app/channels/application_cable/connection.rb'
- template "application_cable/channel.rb", 'app/channels/application_cable/channel.rb'
- template "assets/consumer.coffee", 'app/assets/javascripts/cable.coffee'
- end
end
protected