method
create_shared_channel_files
v8.0.0 -
Show latest stable
- Class:
Rails::Generators::ChannelGenerator
create_shared_channel_files()private
No documentation available.
# File actioncable/lib/rails/generators/channel/channel_generator.rb, line 40
def create_shared_channel_files
return if behavior != :invoke
copy_file "#{__dir__}/templates/application_cable/channel.rb",
"app/channels/application_cable/channel.rb"
copy_file "#{__dir__}/templates/application_cable/connection.rb",
"app/channels/application_cable/connection.rb"
end