While upgrading my gem, dm-is-friendly, for DM 1.1.0 it broke in a way
I don't quite understand. In the gem, I create a DM model dynamically
like this:
DataMapper::Ext::Object.full_const_set("SomeClass",
DataMapper::Model.new do
# ...stuff...
end)
With the 1.1.0 release, this is broken when more than one class is
added in this manner. The previously added class is removed from
DataMapper::Model.descendants each time you add a new one.
This gist shows what happens: https://gist.github.com/908181
I'll take a crack at it if it's a bug, but it's possible that I'm not
using the new API correctly since I haven't really looked into it.
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.