lib/split/helper.rb in ab-split-1.0.1 vs lib/split/helper.rb in ab-split-1.0.2

- old
+ new

@@ -36,10 +36,10 @@ else alternative end end - def ab_test_config(metric_descriptor, control = nil, *alternatives) + def self.ab_test_config(metric_descriptor, control = nil, *alternatives) experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *alternatives) experiment.save end def reset!(experiment)