geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

validatesWithFunction() example #169

Open danfinlay opened 10 years ago

danfinlay commented 10 years ago

I'm not sure how this validator is used, would be great to get an example of it in the readme. I may add it once I've figured it out, am submitting approval to push code to the project to my company's legal team now.

mde commented 10 years ago

There's an example in the stub model file that gets spit out by the generators. You could totally move that into the docs somewhere where it would be more useful.