Permalink
Browse files

minor comment for clarification

Signed-off-by: shalott <shalott@gmail.com>
  • Loading branch information...
1 parent 32f7712 commit 9e686c991ee10133d7de9df45614d03c5a6c10ca @shalott shalott committed Apr 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/work.rb
View
@@ -18,7 +18,7 @@ class Work < ActiveRecord::Base
has_many :external_author_names, :through => :external_creatorships, :inverse_of => :works
has_many :external_authors, :through => :external_author_names, :uniq => true
- has_many :chapters
+ has_many :chapters # we do NOT use dependent => destroy here because we want to destroy chapters in REVERSE order
validates_associated :chapters
has_many :serial_works, :dependent => :destroy

0 comments on commit 9e686c9

Please sign in to comment.