Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.22 KB

README.rdoc

File metadata and controls

25 lines (16 loc) · 1.22 KB

mongoid_tree

For our commercial application we need a proper tree structure with Depth-First and Breadth-First searches, parent and child information. Also subtrees need to be exported to JSON.

Initially I thought of an embedded solution, but this will only be possible once MongoDB supports embedded collections, and even deep-embedded collections.

However this tree is right now on the top of our priority list, means we will put effort into this and release everything in this public gem, as soon as we implement and test it. It will be fully tested with RSpec. The lack of a proper tree structure is quite noticeable in the mongoid forums.

This gem will receive long-term support since we use it in a commercial long-term application.

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 Rainer Kuhn. See LICENSE for details.