summaryrefslogtreecommitdiff
path: root/app/javascript/channels/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/channels/index.js')
-rw-r--r--app/javascript/channels/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/channels/index.js b/app/javascript/channels/index.js
new file mode 100644
index 0000000..0cfcf74
--- /dev/null
+++ b/app/javascript/channels/index.js
@@ -0,0 +1,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)