Skip to content

Commit 00d76dc

Browse files
authored
Merge pull request #644 from TomasBarry/typo/correct-spelling-of-class-variable-in-trial
Fix typo of in `Split::Trial` class variable
2 parents 595a59a + 5ee828c commit 00d76dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/split/trial.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(attrs = {})
1515
@user = attrs.delete(:user)
1616
@options = attrs
1717

18-
@alternative_choosen = false
18+
@alternative_chosen = false
1919
end
2020

2121
def metadata
@@ -54,7 +54,7 @@ def complete!(context = nil)
5454
def choose!(context = nil)
5555
@user.cleanup_old_experiments!
5656
# Only run the process once
57-
return alternative if @alternative_choosen
57+
return alternative if @alternative_chosen
5858

5959
new_participant = @user[@experiment.key].nil?
6060
if override_is_alternative?
@@ -91,7 +91,7 @@ def choose!(context = nil)
9191
new_participant_and_cohorting_disabled = new_participant && @experiment.cohorting_disabled?
9292

9393
@user[@experiment.key] = alternative.name unless @experiment.has_winner? || !should_store_alternative? || new_participant_and_cohorting_disabled
94-
@alternative_choosen = true
94+
@alternative_chosen = true
9595
run_callback context, Split.configuration.on_trial unless @options[:disabled] || Split.configuration.disabled? || new_participant_and_cohorting_disabled
9696
alternative
9797
end

0 commit comments

Comments
 (0)