Permalink
Browse files

Updated README for delete_version API

  • Loading branch information...
1 parent c2cfe6c commit c6d8b21c2ae0205a51355c7a9b5221f48450277d @dhruvasagar dhruvasagar committed Apr 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -91,6 +91,10 @@ The following example should demonstrate how to use versioning well :
thing.version_at(10)
#=> nil
+ thing.delete_version(:all) # This will delete all versions and reset versions_count to 0
+ # Or
+ thing.delete_version(1) # This will delete the version at pos = 1, and reset the pos of all subsequent versions to one less to maintain linear sequence.
+
Problems or Questions?
----------------------
Hit up on the mongomapper google group:

0 comments on commit c6d8b21

Please sign in to comment.