Deleting a project now also deletes any notes attached to it, so that errors aren't generated when [tracks_url]/notes is visited.

Fixes #138.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@151 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-10-12 13:00:19 +00:00
parent cc001264fc
commit d695ede1be

View file

@ -1,7 +1,7 @@
class Project < ActiveRecord::Base
has_many :todos, :dependent => true
has_many :notes, :order => "created_at DESC"
has_many :notes, :dependent => true, :order => "created_at DESC"
belongs_to :user
acts_as_list :scope => :user