aboutsummaryrefslogblamecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt
blob: 0cfcf7491966df3bda67c1daa2d61dc9115281f8 (plain) (tree)
1
2
3
4
5
                                                                      

                                            
                                                            
                                 
// Load all the channels within this directory and all subdirectories.
// Channel files must be named *_channel.js.

const channels = require.context('.', true, /_channel\.js$/)
channels.keys().forEach(channels)