mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Defend from nil BETA_TESTERS var
This commit is contained in:
@@ -31,6 +31,8 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
def self.enable(feature_name, user_emails)
|
||||
return unless user_emails.present?
|
||||
|
||||
Thread.current[:features] ||= {}
|
||||
Thread.current[:features][feature_name] = Feature.new(user_emails)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user