From 5253ff98473250e97f6f7cb19e015c23587ac08e Mon Sep 17 00:00:00 2001 From: Pius Uzamere Date: Fri, 4 Dec 2009 10:59:03 -0500 Subject: [PATCH] make sure that adding new ideas increases the idea counter cache --- app/models/choice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/choice.rb b/app/models/choice.rb index 589bc07..5c8e544 100644 --- a/app/models/choice.rb +++ b/app/models/choice.rb @@ -1,7 +1,7 @@ class Choice < ActiveRecord::Base include Activation - belongs_to :question + belongs_to :question, :counter_cache => true belongs_to :item belongs_to :creator, :class_name => "Visitor", :foreign_key => "creator_id" -- libgit2 0.21.2