instance method
generate_application_cable_files
Ruby on Rails 6.0.6
Since v5.2.8.1 Last seen in v6.1.7.10 PrivateSignature
generate_application_cable_files()
FIXME: Change these files to symlinks once RubyGems 2.5.0 is required.
Source
# File actioncable/lib/rails/generators/channel/channel_generator.rb, line 37
def generate_application_cable_files
return if behavior != :invoke
files = [
"application_cable/channel.rb",
"application_cable/connection.rb"
]
files.each do |name|
path = File.join("app/channels/", name)
template(name, path) if !File.exist?(path)
end
end
Defined in actioncable/lib/rails/generators/channel/channel_generator.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::ChannelGenerator