aboutsummaryrefslogblamecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/templates/javascript/index.js.tt
blob: 5da1ce2dce3dc70fa689a4c14d13fd067c9764fb (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)