carlosparamio / mongo_odm

Flexible persistence module for any Ruby class to MongoDB
http://github.com/carlosparamio/mongo_odm
MIT License
41 stars 8 forks source link

Missing error class and added a before_validate callback #6

Closed dusty closed 13 years ago

dusty commented 13 years ago

Missing error class and added a before_validate callback

carlosparamio commented 13 years ago

Hey! Sorry for the delay, big changes on personal life.

Thanks for your contributions! I've integrated your commits to master, except the one with the missing Error Class, because I have customized the message of the error on the class itself, and added two parameters (field_name and class) on the initializer. But thank you for notice it!