module ConfigManager module Toggles class Set def self.active?(toggle_def, challenge) if toggle_def.acceptable_values.is_a?(Array) return toggle_def.acceptable_values.include?(challenge) else return false end end def self.to_json(values) values.to_json end def self.from_json(json) json ? JSON.parse(json) : [] end end end end