mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user