Skip to content

Commit

Permalink
changing readme.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuskubilius committed Jul 8, 2013
1 parent 348fae9 commit 86e2591
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# lbg-mongoose-utils #
A small collection of mongoose extensions to be used in my projects.
# Current modules: #
## slugify ##
## slugify ##
creates unique slugs for assigned items.
## ancestorTree ##
## ancestorTree ##
helps maintaining hierarchical items.
use array of ancestors pattern can be seen here:
http://docs.mongodb.org/manual/tutorial/model-tree-structures-with-ancestors-array/

## status ##
adds status field and adds static methods:
* publishDocument,
* unPublishDocument
* trashDocument.
### usage of status module: ###
adds status field and adds static methods:

* publishDocument,
* unPublishDocument
* trashDocument.

### usage of status module: ###
model.publishDocument(id, function(err, result) {
console.log(result)
});
Expand Down

0 comments on commit 86e2591

Please sign in to comment.