benpickles / js-model

Work with models in your JavaScript
http://benpickles.github.io/js-model/
MIT License
403 stars 42 forks source link

Validations #13

Open olivernn opened 14 years ago

olivernn commented 14 years ago

I have the basic implementations of validatesNumericalityOf, validatesPresenceOf, validatesFormatOf and validatesUniquenessOf, I also added a class method any(). Let me know what you think.

benpickles commented 14 years ago

looks useful.

this is the perfect case for having some sort of plugin architecture™. i'd like to have an easy mechanism to extend js-model's functionality - something along the lines of sammy's use.