Set ModelsBuilderConfig back to default to true

This commit is contained in:
Nikolaj
2020-09-08 10:56:41 +02:00
parent 7ac4e6c387
commit 7496e7c9a0
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ namespace Umbraco.Configuration.Legacy
{
// giant kill switch, default: false
// must be explicitely set to true for anything else to happen
Enable = true;
Enable = ConfigurationManager.AppSettings[Prefix + "Enable"] == "true";
// ensure defaults are initialized for tests
ModelsNamespace = Constants.ModelsBuilder.DefaultModelsNamespace;

View File

@@ -29,7 +29,7 @@ namespace Umbraco.Configuration.Models
/// <para>If this is false then absolutely nothing happens.</para>
/// <para>Default value is <c>false</c> which means that unless we have this setting, nothing happens.</para>
/// </remarks>
public bool Enable => _configuration.GetValue(Prefix+"Enable", true);
public bool Enable => _configuration.GetValue(Prefix+"Enable", false);
/// <summary>
/// Gets the models mode.