<#633 Add zeitwerk for file loading> Issue created...
# pact-broker
g
#633 Add zeitwerk for file loading Issue created by bethesque Currently, we require files manually, and this can lead to bugs when requires are missing. The zeitwerk code loader could be used to avoid having to do manual requires. Good article on it here: https://www.honeybadger.io/blog/ruby-code-loader-zeitwerk/ Something that needs to be taken into account is that all the Sequel::Model classes (and all the classes that depend on them) can only be loaded after the database connection has been made, so there are the "pre db connection" files and the "post db connection files". require "pact_broker" (no db required) => make database connection require "pact_broker/api" (db required) pact-foundation/pact_broker