mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-18 00:17:25 +00:00
This however makes the tests still pass, which rely on the off-branch logic of the toggle. We'll work on them next.
12 lines
277 B
Ruby
12 lines
277 B
Ruby
require 'open_food_network/feature_toggle'
|
|
|
|
beta_testers = ENV['BETA_TESTERS']&.split(/[\s,]+/) || []
|
|
|
|
OpenFoodNetwork::FeatureToggle.enable(:customer_balance) do |user|
|
|
!Rails.env.test?
|
|
end
|
|
|
|
OpenFoodNetwork::FeatureToggle.enable(:unit_price) do
|
|
Rails.env.development?
|
|
end
|