mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Enable new customer balance for the core team
This enables the use of the new customer balance implementation to whatever users we specify in the BETA_TESTERS env var through ofn-install. This var is meant to contain the user emails that will log in such as personal accounts (I have an account with admin access to my hub) or superadmin accounts used by the core team. This way can gather early feedback ourselves while not releasing the new logic to users.
This commit is contained in:
@@ -60,4 +60,11 @@ SMTP_PASSWORD: 'f00d'
|
||||
# STRIPE_CLIENT_ID: "ca_xxxx" # This can be a development ID or a production ID
|
||||
# STRIPE_ENDPOINT_SECRET: "whsec_xxxx"
|
||||
|
||||
# Feature toggles
|
||||
#
|
||||
# Adding user emails separated by commas will enable them the use of certain features. See
|
||||
# config/initializers/feature_toggles.rb for details.
|
||||
#
|
||||
# BETA_TESTERS: ofn@example.com,superadmin@example.com
|
||||
|
||||
MEMCACHED_VALUE_MAX_MEGABYTES: '4'
|
||||
|
||||
5
config/initializers/feature_toggles.rb
Normal file
5
config/initializers/feature_toggles.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
require 'open_food_network/feature_toggle'
|
||||
|
||||
beta_testers = ENV['BETA_TESTERS']&.split(/[\s,]+/)
|
||||
|
||||
OpenFoodNetwork::FeatureToggle.enable(:customer_balance, beta_testers)
|
||||
Reference in New Issue
Block a user