Commit afbf3224cca6efd0fc832e13e06ca9a400bb1258
1 parent
7f62cf5a
Exists in
master
and in
1 other branch
spike
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/visitor.rb
| ... | ... | @@ -13,6 +13,7 @@ class Visitor < ActiveRecord::Base |
| 13 | 13 | end |
| 14 | 14 | |
| 15 | 15 | def vote_for!(prompt, ordinality) |
| 16 | + logger.info 'testing' | |
| 16 | 17 | choices = prompt.choices |
| 17 | 18 | choice = choices[ordinality] #we need to guarantee that the choices are in the right order (by position) |
| 18 | 19 | prompt_vote = votes.create!(:voteable => prompt) | ... | ... |