Commit b78b0dcc6c3909dc2bd90d7c1b90271f3f894761
1 parent
afa30bcd
Exists in
master
and in
1 other branch
getting rid of cruft
Showing
1 changed file
with
1 additions
and
12 deletions
Show diff stats
app/models/question.rb
| ... | ... | @@ -20,18 +20,7 @@ class Question < ActiveRecord::Base |
| 20 | 20 | def item_count |
| 21 | 21 | choices_count |
| 22 | 22 | end |
| 23 | - | |
| 24 | - def range_rand(min,max) | |
| 25 | - min + rand(max-min) | |
| 26 | - end | |
| 27 | - | |
| 28 | - | |
| 29 | - def picked_prompt | |
| 30 | - begin | |
| 31 | - return p = prompts.find(prompt_ids.rand) | |
| 32 | - end until p.active? | |
| 33 | - end | |
| 34 | - | |
| 23 | + | |
| 35 | 24 | def picked_prompt |
| 36 | 25 | pc = self.prompts_count < 1 ? 2 : self.prompts_count |
| 37 | 26 | begin | ... | ... |