method

create_channel_javascript_file

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ChannelGenerator
create_channel_javascript_file() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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_js_runtime?
        end
Register or log in to add new notes.