Skip to content
Browse files

Added some informations about Mongoid compatibility in the README

  • Loading branch information...
1 parent f4c436e commit 7f27a2f83b048251a6bacd707e467ea60c84f53a @jbbarth committed Jun 9, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
View
6 README.md
@@ -23,6 +23,12 @@ To apply Mongoid-ancestry to any Mongoid model, follow these simple steps:
Your model is now a tree!
+## Mongoid compatibility
+
+This gem only supports Mongoid 3.x starting with version 0.3.0.
+
+If you want to use Mongoid version 2.x, you should either use this gem in a 0.2.x version or checkout the "mongoid-2.4-stable" branch. You can ask bundler to stick with 0.2.x versions of this gem by adding this to your Gemfile: `gem 'mongoid-ancestry', '~> 0.2.2'`
+
## Organising records into a tree
You can use the parent attribute to organise your records into a tree. If you have the id of the record you want
to use as a parent and don't want to fetch it, you can also use `parent_id`. Like any virtual model attributes,

0 comments on commit 7f27a2f

Please sign in to comment.
Something went wrong with that request. Please try again.