Skip to content

Commit

Permalink
Fix AbstractClass
Browse files Browse the repository at this point in the history
  • Loading branch information
biggora committed Feb 21, 2013
1 parent f34c58b commit 17bf6a6
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 85 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mongoose, mysql, sqlite3, riak, postgres, couchdb, mongodb, redis, neo4j, firebi

```javascript
var Schema = require('caminte').Schema;
var schema = new Schema('redis2', {port: 6379}); //port number depends on your configuration
var schema = new Schema('redis2', {port: 6379}); // port number depends on your configuration
// define models
var Post = schema.define('Post', {
title: { type: String, length: 255 },
Expand Down Expand Up @@ -90,6 +90,7 @@ user.destroy(cb);
// destroy all instances
User.destroyAll(cb);


// Setup validations
User.validatesPresenceOf('name', 'email')
User.validatesLengthOf('password', {min: 5, message: {min: 'Password is too short'}});
Expand Down
Loading

0 comments on commit 17bf6a6

Please sign in to comment.