instance method
create_channel_javascript_file
Ruby on Rails 7.0.10
Since v7.0.10 PrivateSignature
create_channel_javascript_file()
No documentation comment.
Source
# File actioncable/lib/rails/generators/channel/channel_generator.rb, line 57
def create_channel_javascript_file
channel_js_path = File.join("app/javascript/channels", class_path, "#{file_name}_channel")
js_template "javascript/channel", channel_js_path
gsub_file "#{channel_js_path}.js", /\.\/consumer/, "channels/consumer" unless using_node?
end
Defined in actioncable/lib/rails/generators/channel/channel_generator.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::ChannelGenerator