flatiron/resourceful — Issue #49: validation assert doesn't work
Author: craftgear
Created: 2012-02-05 09:43:57+00:00
State: open

This code returns true on validation, should return alway false.

```javascript

var rf = require('resourceful')

var Person = rf.define('person', function(){
this.use('couchdb')
this.number('age', {
assert: function(val){
return false
}
})
})

var peter = new Person()
peter.age = 17
var validation = peter.validate()
console.log(validation.valid)

```
When I can't use 'assert', how do I check values on complex conditions?