Incorrect typecasting for nil values in URI type.
Reported by Bira | September 14th, 2008 @ 06:50 AM
I ran accross this today when working on a personal project. Assigning a nil value to a URI property causes DM to create an Addressable::URI object from an empty string, so that this happens:
@object.uri_property = nil @object.uri_property == nil # => false
I've included a patch to the URI type that makes it behave in what I believe is the correct way. It also includes a spec for this particular edge case.
Comments and changes to this ticket
-
-
Dirkjan Bussink October 7th, 2008 @ 02:52 PM
- → State changed from new to resolved
- → Tag changed from bug dm-more patch types to bug "dm-more" patch types
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
