lib/split/experiment.rb in split-0.6.3 vs lib/split/experiment.rb in split-0.6.4
- old
+ new
@@ -208,18 +208,20 @@
end
def reset
alternatives.each(&:reset)
reset_winner
+ Split.configuration.on_experiment_reset.call(self)
increment_version
end
def delete
alternatives.each(&:delete)
reset_winner
Split.redis.srem(:experiments, name)
Split.redis.del(name)
delete_goals
+ Split.configuration.on_experiment_delete.call(self)
increment_version
end
def delete_goals
Split.redis.del(goals_key)