From 4f9a895331e262708203f797aed25545557836bc Mon Sep 17 00:00:00 2001 From: Brian Knox Date: Fri, 26 Dec 2008 14:41:48 -0500 Subject: [PATCH] adding ordering to some assocatiations --- models/word.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/word.rb b/models/word.rb index 3519fd3..cf8e28f 100644 --- a/models/word.rb +++ b/models/word.rb @@ -3,6 +3,6 @@ class Word storage_names[:default]='word' property :wordid, Integer, :key => true, :writer => :protected property :lemma, String, :writer => :protected - has n, :senses, :child_key => [:wordid] - has n, :synsets, :through => :senses, :child_key => [:wordid] + has n, :senses, :child_key => [:wordid], :order => [:rank.asc, :synsetid.asc] + has n, :synsets, :through => :senses, :child_key => [:wordid], :order => [:synsetid.asc] end \ No newline at end of file