added autovalidation (auto_validate! in your ExtendedDocument) and extracted some extlib stuff so we will soon be able to remove the dependency.

This commit is contained in:
Matt Aimonetti 2009-02-05 17:06:12 -08:00
parent e9930c5a86
commit 890b60cae4
18 changed files with 497 additions and 52 deletions

View file

@ -66,7 +66,7 @@ module CouchRest
# Returns false for other property types.
# Returns false for non-properties.
def boolean_type?(property)
property ? property.primitive == TrueClass : false
property ? property.type == TrueClass : false
end
end # class RequiredFieldValidator