Skip to content

Commit

Permalink
adding ordering to some assocatiations
Browse files Browse the repository at this point in the history
  • Loading branch information
gnugeek committed Dec 26, 2008
1 parent 0827468 commit 4f9a895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/word.rb
Expand Up @@ -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

0 comments on commit 4f9a895

Please sign in to comment.