basic_model
basic_model copied to clipboard
Validation, @attributes[...] vs self[...]
BasicModel stores the data in @attributes, which is just a hashtable. That makes it impossible to use the validation features in CouchRest, doesn't it?
Why not make BasicModel a subclass of ExtendedDocument and store the data in self[]?