lib/split/trial.rb in split-1.2.0 vs lib/split/trial.rb in split-1.2.1
- old
+ new
@@ -13,10 +13,10 @@
@alternative_choosen = false
end
def metadata
- @metadata ||= experiment.metadata[alternative.name]
+ @metadata ||= experiment.metadata[alternative.name] if experiment.metadata
end
def alternative
@alternative ||= if @experiment.has_winner?
@experiment.winner