Recently upgraded an application to Rails v6.1.4 and have been using zeitwerk. It doesn’t seem like Rails runs
zeitwerk:check on startup so would it fail at run time if it tried to load something that was incorrect? Or is this only because I’m doing it in my development environment and it would fail in a production environment?
Either way, a way to avoid this is adding
zeitwerk:check as a pre-commit hook in my git repo to help other contributors not commit bugs on accident. Wondering if this is good practice or an unnecessary check?
Any thoughts appreciated!