lib/split/trial.rb in split-1.4.0 vs lib/split/trial.rb in split-1.4.1
- old
+ new
@@ -53,10 +53,10 @@
# Only run the process once
return alternative if @alternative_choosen
if @options[:override]
self.alternative = @options[:override]
- elsif @options[:disabled] || !Split.configuration.enabled
+ elsif @options[:disabled] || Split.configuration.disabled?
self.alternative = @experiment.control
elsif @experiment.has_winner?
self.alternative = @experiment.winner
else
cleanup_old_versions