ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

Return since we know we didn't validate and there's no array #25

Closed palexander closed 11 years ago

palexander commented 11 years ago

If you define a unique but leave the value empty and then try to run validation, you get an exception because the validator is expecting an array. One solution is to return when a nil value is found. Not sure if this achieves everything the method should handle, though.