Merge pull request #159 from bquorning/patch-1

Adding indexes
This commit is contained in:
Didier Lafforgue 2011-08-14 12:44:59 -07:00
commit 12c9bd1eca
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ module Extensions
## fields ##
field :position, :type => Integer
## indexes ##
index :position
index [[:depth, :asc], [:position, :asc]]
## behaviours ##
acts_as_tree :order => ['position', 'asc']