Enable customer_balance to all users

This however makes the tests still pass, which rely on the off-branch
logic of the toggle. We'll work on them next.
This commit is contained in:
Pau Perez
2021-04-09 08:17:24 +02:00
parent 199efb1e20
commit bac9f62132

View File

@@ -3,11 +3,7 @@ require 'open_food_network/feature_toggle'
beta_testers = ENV['BETA_TESTERS']&.split(/[\s,]+/) || []
OpenFoodNetwork::FeatureToggle.enable(:customer_balance) do |user|
if beta_testers == ['all']
true
else
beta_testers.include?(user.email)
end
!Rails.env.test?
end
OpenFoodNetwork::FeatureToggle.enable(:unit_price) do