datamapper / dm-types

DataMapper plugin providing extra data types
http://datamapper.org/
MIT License
55 stars 80 forks source link

Type URI returns an Addressable::URI on an empty string #39

Open probablykabari opened 13 years ago

probablykabari commented 13 years ago

The bug here is that with an empty string, URI type always returns an instance of Addressable::URI. So when doing a validation checking for #blank? it returns false. This is a problem when the property is being set from form params.