class SkProgressBar::Generators::ChannelGenerator
Sidekiq Progress Bar generator that creates action_cable files from template
Public Instance Methods
generate_files()
click to toggle source
Add action cable in project's folder
# File lib/generators/sk_progress_bar/channel/channel_generator.rb, line 12 def generate_files copy_file 'sk_progress_bar_channel.rb', "app/channels/#{name}_channel.rb" copy_file 'sk_progress_bar.coffee', "app/assets/javascripts/channels/#{name}.coffee" end