Added missing ordering to relation members. This was only visible in some relations...
authorMatt Amos <zerebubuth@gmail.com>
Tue, 26 May 2009 15:57:57 +0000 (15:57 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Tue, 26 May 2009 15:57:57 +0000 (15:57 +0000)
app/models/old_relation.rb

index b2fdf926e1c353720a40b362e03eafcdd8bd2a28..6f364225b9b079a87429bf6daba16cb70b07c177 100644 (file)
@@ -81,7 +81,7 @@ class OldRelation < ActiveRecord::Base
 #  has_many :relation_tags, :class_name => 'OldRelationTag', :foreign_key => 'id'
 
   def old_members
-    OldRelationMember.find(:all, :conditions => ['id = ? AND version = ?', self.id, self.version])    
+    OldRelationMember.find(:all, :conditions => ['id = ? AND version = ?', self.id, self.version], :order => "sequence_id")
   end
 
   def old_tags