We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e4432 commit abc042cCopy full SHA for abc042c
actioncable/lib/rails/generators/channel/channel_generator.rb
@@ -61,13 +61,13 @@ def create_channel_javascript_file
61
end
62
63
def import_channels_in_javascript_entrypoint
64
- append_to_file "app/javascript/application.js",
+ append_to_file "app/javascript/application.js",
65
using_node? ? %(import "./channels"\n) : %(import "channels"\n)
66
67
68
def import_channel_in_javascript_entrypoint
69
append_to_file "app/javascript/channels/index.js",
70
- using_node? ? %(import "./#{file_name}_channel"\n) : %(import "channels/#{file_name}_channel"\n)
+ using_node? ? %(import "./#{file_name}_channel"\n) : %(import "channels/#{file_name}_channel"\n)
71
72
73
def install_javascript_dependencies
0 commit comments