Skip to content

Commit 9d73f78

Browse files
committed
Update doc
1 parent 4b908ca commit 9d73f78

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var Post = Modeler('Post')
5757

5858
## Model.validate(fn)
5959

60-
TODO: validation callback docs
60+
Add validation `fn()`.
6161

6262
## Model.use(fn)
6363

@@ -74,15 +74,15 @@ Post.use(function (Model) {
7474

7575
## Model.get(id, fn)
7676

77-
TODO: get docs
77+
Get `id` and invoke `fn(err, model)`.
7878

7979
## Model.all(fn)
8080

81-
TODO: all docs
81+
Get all and invoke `fn(err, model)`.
8282

8383
## Model.destroyAll(fn)
8484

85-
TODO: destroyall docs
85+
Remove all and invoke `fn(err)`.
8686

8787
## Model#ATTR()
8888

@@ -133,7 +133,7 @@ post.on('change title', function(val, prev){
133133

134134
## Model#primary(val)
135135

136-
TODO: primary docs
136+
Get / set the primary key.
137137

138138
## Model#isNew()
139139

@@ -203,7 +203,7 @@ Emits "destroy" when successfully deleted.
203203

204204
```
205205
$ npm install
206-
$ make test-phantomjst
206+
$ make test
207207
```
208208

209209
# License

0 commit comments

Comments
 (0)