instance method import_channel_in_javascript_entrypoint

Ruby on Rails 8.0.4

Since v7.0.10 Private

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

import_channel_in_javascript_entrypoint()

No documentation comment.

Source
# File actioncable/lib/rails/generators/channel/channel_generator.rb, line 70
        def import_channel_in_javascript_entrypoint
          append_to_file "app/javascript/channels/index.js",
            using_js_runtime? ? %(import "./#{file_name}_channel"\n) : %(import "channels/#{file_name}_channel"\n)
        end

Defined in actioncable/lib/rails/generators/channel/channel_generator.rb line 70 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generators::ChannelGenerator

Type at least 2 characters to search.

↑↓ navigate · open · esc close