saks / mongoid_acts_as_tree

ActsAsTree for Mongoid
http://github.com/ramdiv/mongo_mapper_acts_as_tree
MIT License
32 stars 17 forks source link

depth field #4

Open cslabu opened 14 years ago

cslabu commented 14 years ago

There may be something that i'm missing ( i just started using mongodb ), but why do you keep the node depth as a separate field? Isn't this the same thing as path_field.length?