lib/split/user.rb in split-4.0.0.pre vs lib/split/user.rb in split-4.0.0.pre2

- old
+ new

@@ -36,10 +36,10 @@ keys_without_experiment(user.keys, experiment_key).length > 0 end end def cleanup_old_versions!(experiment) - keys = user.keys.select { |k| k.match(Regexp.new(experiment.name)) } + keys = user.keys.select { |k| key_without_version(k) == experiment.name } keys_without_experiment(keys, experiment.key).each { |key| user.delete(key) } end def active_experiments experiment_pairs = {}