Some of the configuration values are being lost because ContentfulModel::Management is created without the configured values in some locations. ContentfulModel::Migrations::ContentTypeFactory.find, for example, creates an instance of ContentfulModel::Management with no configuration.
This change centralises the configuration into ContentfulModel::Management.initialize so that all instances use the configured values, such as default_locale.
Losing default_locale causes errors when a space is configured without the default en-US locale.
Some of the configuration values are being lost because
ContentfulModel::Management
is created without the configured values in some locations.ContentfulModel::Migrations::ContentTypeFactory.find
, for example, creates an instance ofContentfulModel::Management
with no configuration.This change centralises the configuration into
ContentfulModel::Management.initialize
so that all instances use the configured values, such asdefault_locale
.Losing
default_locale
causes errors when a space is configured without the defaulten-US
locale.