changeset 572:031d70972601 cannam_integration

Merge from feature_36
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 09 Aug 2011 16:02:08 +0100
parents fca539d668a2 (current diff) e1699e8d6d69 (diff)
children 47b21bb3fa03
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/models/publication.rb	Tue Aug 09 14:54:06 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/models/publication.rb	Tue Aug 09 16:02:08 2011 +0100
@@ -3,7 +3,7 @@
 class Publication < ActiveRecord::Base
   unloadable
   
-  has_many :authorships, :dependent => :destroy
+  has_many :authorships, :dependent => :destroy, :order => "auth_order ASC"
   has_many :authors, :through => :authorships, :uniq => true
   
   has_one :bibtex_entry, :dependent => :destroy