lib/split/configuration.rb in split-1.4.2 vs lib/split/configuration.rb in split-1.4.3
- old
+ new
@@ -13,10 +13,11 @@
attr_accessor :persistence
attr_accessor :persistence_cookie_length
attr_accessor :algorithm
attr_accessor :store_override
attr_accessor :start_manually
+ attr_accessor :on_trial
attr_accessor :on_trial_choose
attr_accessor :on_trial_complete
attr_accessor :on_experiment_reset
attr_accessor :on_experiment_delete
attr_accessor :on_before_experiment_reset
@@ -146,9 +147,13 @@
experiment_config[experiment_name.to_sym][:goals] = goals
end
if metadata = value_for(settings, :metadata)
experiment_config[experiment_name.to_sym][:metadata] = metadata
+ end
+
+ if algorithm = value_for(settings, :algorithm)
+ experiment_config[experiment_name.to_sym][:algorithm] = algorithm
end
if (resettable = value_for(settings, :resettable)) != nil
experiment_config[experiment_name.to_sym][:resettable] = resettable
end