DataMapper HEAD support
Reported by Brian Rose | March 2nd, 2008 @ 07:58 AM | in 1.0
Wanting to experiment with the extremely bleeding edge version of DataMapper, I wired up merb_datamapper to work (mostly).
DataMapper HEAD is available via git at:
http://github.com/sam/dm/tree/ma...
merb_datamapper is available in this merb_plugins fork:
http://github.com/heimidal/merb-...
A few gotchas (since this is extremely bleeding edge):
DM::Base appears to have been merged with DM::Database into DM::Repository.
DM::Persistence has been replaced by DM::Persistable.
validates_length_of appears to be broken as of 2/2/08.
You cannot inherit from DM::Repository. (I am not sure what the plan for that class is and haven't had a chance to look into the problem.) You must include DataMapper::Persistable in your models.
Comments and changes to this ticket
-
Nick DeMonner March 2nd, 2008 @ 08:59 AM
Did the same thing and added a patch to merb_datamapper in #58 as this seems to be where they are going.
-
Brian Rose March 2nd, 2008 @ 08:42 AM
Not sure how I missed that - sorry.
Are you aware of whether including DM::Persistable or inheriting from DM::Model is preferred? We should be sure that the preferred method is used in the model template.
-
Nick DeMonner March 2nd, 2008 @ 08:47 AM
DM::Model simply has a single method (self.inherited) which sends an include for DM::Persistable, so I think inheriting from DM::Model is the way they want it.
-
Brian Rose March 2nd, 2008 @ 08:52 AM
I've updated the fork at http://github.com/heimidal/merb-... to reflect this change.
-
Ezra Zygmuntowicz March 25th, 2008 @ 02:38 AM
- → State changed from new to open
I will apply these patches once dm-core 0.9 is ready for public consumption it's still a bit early to have the opfficial plugin work with dm HEAD
-
Michael Klishin (antares) May 8th, 2008 @ 08:08 PM
- → Assigned user changed from to Michael Klishin (antares)
-
-
Michael Klishin (antares) May 11th, 2008 @ 03:21 PM
- → Milestone changed from to 1.0
-
Michael D'Auria June 11th, 2008 @ 06:22 AM
Isn't this handled by the dm folks now? The ticket can probably be closed.
-

-
jack dempsey (jackdempsey) June 19th, 2008 @ 06:41 AM
- → State changed from open to invalid
closing now as merb_datamapper is being supported by the DataMapper team
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 »
