From b78b0dcc6c3909dc2bd90d7c1b90271f3f894761 Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Fri, 4 Dec 2009 11:58:17 -0500 Subject: [PATCH] getting rid of cruft --- app/models/question.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/models/question.rb b/app/models/question.rb index 0c6fcb5..8d4f9d5 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -20,18 +20,7 @@ class Question < ActiveRecord::Base def item_count choices_count end - - def range_rand(min,max) - min + rand(max-min) - end - - - def picked_prompt - begin - return p = prompts.find(prompt_ids.rand) - end until p.active? - end - + def picked_prompt pc = self.prompts_count < 1 ? 2 : self.prompts_count begin -- libgit2 0.21.2