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.
1 parent 649bb4e commit 18c0514Copy full SHA for 18c0514
lib/split/experiment.rb
@@ -18,21 +18,7 @@ def initialize(name, options = {})
18
19
@name = name.to_s
20
21
- alternatives = extract_alternatives_from_options(options)
22
-
23
- if alternatives.empty? && (exp_config = Split.configuration.experiment_for(name))
24
- options = {
25
- alternatives: load_alternatives_from_configuration,
26
- goals: Split::GoalsCollection.new(@name).load_from_configuration,
27
- metadata: load_metadata_from_configuration,
28
- resettable: exp_config[:resettable],
29
- algorithm: exp_config[:algorithm]
30
- }
31
- else
32
- options[:alternatives] = alternatives
33
- end
34
35
- set_alternatives_and_options(options)
+ extract_alternatives_from_options(options)
36
end
37
38
def self.finished_key(key)
0 commit comments