Skip to content

Commit

Permalink
Allow algorithm configuration at experiment level
Browse files Browse the repository at this point in the history
  • Loading branch information
007sumit committed Apr 26, 2016
1 parent 4edb08a commit 8bd8fa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/split/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def normalized_experiments
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
Expand Down

0 comments on commit 8bd8fa6

Please sign in to comment.