Skip to content

Commit

Permalink
Replace Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
biggora committed May 8, 2013
1 parent d333a2f commit 9cbc7d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ user.isValid(function (valid) {
var post = new Post();
```

#### Create
#### create(callback)

Save model (of course async)

Expand All @@ -124,7 +124,7 @@ Post.create(function(err){
});
```

#### All
#### all(params, callback)

```javascript
// all posts
Expand All @@ -141,7 +141,7 @@ user.posts(function(err, posts){
})
```

#### findOne
#### findOne(params, callback)

Get one latest post

Expand All @@ -151,7 +151,7 @@ Post.findOne({where: {published: true}, order: 'date DESC'}, function(err, post)
});
```

#### findById
#### findById(id, callback)

Find instance by id

Expand All @@ -161,7 +161,7 @@ User.findById(1, function(err, post){
})
```

#### count
#### count(params, callback)

Count instances

Expand All @@ -172,7 +172,7 @@ User.count({where: {userId: user.id}}, function(err, count){
});
```

#### destroy
#### destroy(callback)

Destroy instance

Expand Down

0 comments on commit 9cbc7d3

Please sign in to comment.