rubycentral/cfp-app

View on GitHub
app/javascript/controllers/index.js

Summary

Maintainability
A
0 mins
Test Coverage
// Load all the controllers within this directory and all subdirectories. 
// Controller files must be named *_controller.js.

import { Application } from "stimulus"
import { definitionsFromContext } from "stimulus/webpack-helpers"

const application = Application.start()
const context = require.context("controllers", true, /_controller\.js$/)
application.load(definitionsFromContext(context))