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
This commit is contained in:
bsag 2006-03-22 12:33:27 +00:00
parent c18db17054
commit d7091d952e

View file

@ -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