Skip to content

Commit

Permalink
separate choosing, and recording.
Browse files Browse the repository at this point in the history
  • Loading branch information
woodhull committed Jan 3, 2013
1 parent d9500a1 commit cc27ae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/split/trial.rb
Expand Up @@ -23,6 +23,11 @@ def complete!

def choose!
self.alternative = choose
self.alternative.increment_participation
end

def record!
self.alternative.increment_participation
end

def alternative_name=(name)
Expand All @@ -34,7 +39,6 @@ def choose
experiment.winner
else
alt = experiment.next_alternative
alt.increment_participation
alt
end
end
Expand Down

0 comments on commit cc27ae0

Please sign in to comment.