
Text primitive missing - causes issues with Csv type
Reported by deepfryed | September 4th, 2009 @ 05:59 PM
Csv inherits from Text primitive and this is failing validation in property.rb
e.g.
class Location
include DataMapper::Resource
property :id, String, :key => true
property :name, String
property :zones, Csv
end
.gem/ruby/1.8/gems/dm-core-0.10.0/lib/dm-core/property.rb:818:in `initialize': +type+ was DataMapper::Types::Csv, which is not a supported type (ArgumentError)
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) September 7th, 2009 @ 02:41 PM
- State changed from new to confirmed
I can confirm this happens on latest edge. Also, dm-types doesn't include any specs for the Csv type which kind of explains why this wasn't noticed before :)
-
Martin Gamsjaeger (snusnu) September 8th, 2009 @ 12:20 PM
Standalone to reproduce can be found at http://pastie.org/609821
-
Dan Kubb (dkubb) October 6th, 2009 @ 12:51 PM
- State changed from confirmed to resolved
This is now resolved in edge dm-core/master and dm-more/master.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »