From d7091d952ea9da9c77e2b64d05270366582dfa93 Mon Sep 17 00:00:00 2001 From: bsag Date: Wed, 22 Mar 2006 12:33:27 +0000 Subject: [PATCH] The :dependent => true option somehow got dropped from context.rb, so deleting a context which did not delete any next actions belonging to that context as it was supposed to, leading to a NoMethodError. :dependent is now reinstated - fixes #234. Thanks to umatz for reproducing the bug. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@206 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/models/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/models/context.rb b/tracks/app/models/context.rb index fa8725b1..e4133370 100644 --- a/tracks/app/models/context.rb +++ b/tracks/app/models/context.rb @@ -1,6 +1,6 @@ class Context < ActiveRecord::Base - has_many :todos, :order => "completed DESC" + has_many :todos, :dependent => true, :order => "completed DESC" belongs_to :user acts_as_list :scope => :user