From d91f45a6d994c1a3c3986d3a4fee860f4026cc45 Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Fri, 4 Dec 2009 10:30:05 -0500 Subject: [PATCH] make sure that seed ideas are immediately active --- app/models/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/question.rb b/app/models/question.rb index 43074b7..0157cc3 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -58,7 +58,7 @@ class Question < ActiveRecord::Base the_ideas.each { |choice_text| item = Item.create!({:data => choice_text, :creator => creator}) puts item.inspect - choice = choices.create!(:item => item, :creator => creator) + choice = choices.create!(:item => item, :creator => creator, :active => true) puts choice.inspect } end -- libgit2 0.21.2