lib/split/experiment.rb in split-3.4.0 vs lib/split/experiment.rb in split-3.4.1

- old
+ new

@@ -23,11 +23,11 @@ if alternatives.empty? && (exp_config = Split.configuration.experiment_for(name)) options = { alternatives: load_alternatives_from_configuration, goals: Split::GoalsCollection.new(@name).load_from_configuration, metadata: load_metadata_from_configuration, - resettable: exp_config.fetch(:resettable, true), + resettable: exp_config[:resettable], algorithm: exp_config[:algorithm] } else options[:alternatives] = alternatives end @@ -60,10 +60,10 @@ exp_config = Split.configuration.experiment_for(name) if exp_config alts = load_alternatives_from_configuration options[:goals] = Split::GoalsCollection.new(@name).load_from_configuration options[:metadata] = load_metadata_from_configuration - options[:resettable] = exp_config.fetch(:resettable, true) + options[:resettable] = exp_config[:resettable] options[:algorithm] = exp_config[:algorithm] end end options[:alternatives] = alts