File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments