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