hassox / dm-polymorphic

An initial repo for polymorphism in datamapper
MIT License
28 stars 8 forks source link

Compatibility with dm-core 1.0.2 #1

Closed 6twenty closed 13 years ago

6twenty commented 13 years ago

I've changed the gem management to use Bundler (mainly as my personal preference so feel free to ignore those changes!), however the core change I've made is to remove the property definition on a belongs_to polymorphic which sets "_id", as dm-core now sets this property automatically. I also found I had to require 'extlib/inflection' manually so I have added extlib to the gem's dependencies and have required it within the gem.

6twenty commented 13 years ago

I should also note that for reasons I haven't yet looked into, I was only able to achieve polymorphic relationships by using the old syntax.

6twenty commented 13 years ago

Closing pull request in favour of a more thorough evaluation of dm-polymorphic (will submit a new pull request once complete)