aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 18:58:43 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-16 18:58:43 +0100
commit70be2486f37175467777eef1b6366d22ae141036 (patch)
treef8d76150d3221ff5d40b9edf8779f3806e082b01 /actioncable
parent0625d77784a0e62b491ad730e4ff8566686acf81 (diff)
downloadrails-70be2486f37175467777eef1b6366d22ae141036.tar.gz
rails-70be2486f37175467777eef1b6366d22ae141036.tar.bz2
rails-70be2486f37175467777eef1b6366d22ae141036.zip
Simpler directory structure
Diffstat (limited to 'actioncable')
-rw-r--r--actioncable/lib/rails/generators/channel/channel_generator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/lib/rails/generators/channel/channel_generator.rb b/actioncable/lib/rails/generators/channel/channel_generator.rb
index 8f1c812c27..8646a5460c 100644
--- a/actioncable/lib/rails/generators/channel/channel_generator.rb
+++ b/actioncable/lib/rails/generators/channel/channel_generator.rb
@@ -9,12 +9,12 @@ 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/cable/channels', class_path, "#{file_name}.coffee")
+ 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/index.coffee'
+ template "assets/consumer.coffee", 'app/assets/javascripts/cable.coffee'
end
end