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:
parent
e9930c5a86
commit
890b60cae4
18 changed files with 497 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue