mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 00:08:50 +01:00
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:
parent
c18db17054
commit
d7091d952e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue