#1276 ✓resolved
Daniel Neighman (hassox)

DataMapper Property not working with rails 3

Reported by Daniel Neighman (hassox) | May 20th, 2010 @ 02:27 AM | in 1.0.0

I just discovered the changes to the DataMapper types moving from DataMapper::Types to DataMapper::Property:: today when I updated my app to 1.0.0.rc2 This stopped my app from working at all :(

I've updated the types to use the new namespace, and made the relevant methods instance methods. This kinda worked by in my model

class Employment
  include DataMapper::Resource

#snip property :email, EmailString #snip end

This seems to load the first time I hit rails (3) but after that, it's not found. (constant not found and raises)

uninitialized constant Employment::EmailString

Sorry I can't provide more info on this one lads :(

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »