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