Validation, @attributes[...] vs self[...] #1

uhgall opened this Issue May 14, 2009 · 0 comments


None yet

1 participant

uhgall commented May 14, 2009

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[]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment