Commit b78b0dcc6c3909dc2bd90d7c1b90271f3f894761

Authored by Pius Uzamere
1 parent afa30bcd

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,18 +20,7 @@ class Question < ActiveRecord::Base
20 def item_count 20 def item_count
21 choices_count 21 choices_count
22 end 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 def picked_prompt 24 def picked_prompt
36 pc = self.prompts_count < 1 ? 2 : self.prompts_count 25 pc = self.prompts_count < 1 ? 2 : self.prompts_count
37 begin 26 begin