add new feature for beta testers: unit_price

The aim of this "feature toggle" is to enable the unit price display for each product/variants.
By default activate on both development and staging environment.
This commit is contained in:
Jean-Baptiste Bellet
2021-02-12 17:14:13 +01:00
parent 77dc6b7d57
commit d97b46cd5b

View File

@@ -9,3 +9,7 @@ OpenFoodNetwork::FeatureToggle.enable(:customer_balance) do |user|
beta_testers.include?(user.email)
end
end
OpenFoodNetwork::FeatureToggle.enable(:unit_price) do
['development', 'staging'].include?(ENV['RAILS_ENV'])
end