From 4d5e6b27ae9492f20a77c49a48d3dfe693cf0b3a Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 6 Jul 2023 09:58:30 +0100 Subject: [PATCH] update feature toggles --- app/services/feature_toggle.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/services/feature_toggle.rb b/app/services/feature_toggle.rb index 2bc081b56..d99b66119 100644 --- a/app/services/feature_toggle.rb +++ b/app/services/feature_toggle.rb @@ -1,10 +1,14 @@ class FeatureToggle # Disable check on preview apps to allow for testing of future forms def self.saledate_collection_window_validation_enabled? + return true + Rails.env.production? || Rails.env.test? || Rails.env.staging? end def self.startdate_two_week_validation_enabled? + return true + Rails.env.production? || Rails.env.test? || Rails.env.staging? end @@ -21,6 +25,7 @@ class FeatureToggle end def self.force_crossover? + return false return false if Rails.env.test? !Rails.env.production?