diff vendor/plugins/redmine_bibliography/app/models/author.rb @ 468:0bb9c7baed07 feature_36

dynamically adding/removing users.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 23 Jun 2011 18:52:30 +0100
parents a7dc708d48a1
children aeedcec4df5f
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/models/author.rb	Wed Jun 22 19:42:31 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/models/author.rb	Thu Jun 23 18:52:30 2011 +0100
@@ -1,5 +1,5 @@
 class Author < ActiveRecord::Base
-  has_many :authorships
+  has_many :authorships, :dependent => :destroy
   has_many :publications, :through => :authorships
 
   belongs_to :user