Class: Apiotics::ChannelGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Apiotics::ChannelGenerator
- Defined in:
- lib/generators/apiotics/channel/channel_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_channel_files ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/apiotics/channel/channel_generator.rb', line 6 def copy_channel_files template "apiotics_channel.rb.erb", "app/channels/#{module_file_name}_channel.rb" template "apiotics_channel_client.coffee.erb", "app/assets/javascripts/channels/#{module_file_name}.coffee" template "apiotics_channel_initializer.rb.erb", "config/initializers/apiotics_channel.rb" route "mount ActionCable.server => '/cable'" end |