We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3ef9d7 + 648576a commit 0eab0aeCopy full SHA for 0eab0ae
lib/split/experiment.rb
@@ -21,21 +21,7 @@ def initialize(name, options = {})
21
22
@name = name.to_s
23
24
- alternatives = extract_alternatives_from_options(options)
25
-
26
- if alternatives.empty? && (exp_config = Split.configuration.experiment_for(name))
27
- options = {
28
- alternatives: load_alternatives_from_configuration,
29
- goals: Split::GoalsCollection.new(@name).load_from_configuration,
30
- metadata: load_metadata_from_configuration,
31
- resettable: exp_config[:resettable],
32
- algorithm: exp_config[:algorithm]
33
- }
34
- else
35
- options[:alternatives] = alternatives
36
- end
37
38
- set_alternatives_and_options(options)
+ extract_alternatives_from_options(options)
39
end
40
41
def self.finished_key(key)
0 commit comments