I just confirmed that Gary's workaround is effective. That is, before setting any fields in an STI base class, call #attributes on it. The issue has nothing to do with validations per se. The bug is that the base class does not load the fields for the derived class even though the returned instance is of the derived class type.
I am very happy to hear that this is fixed in the next branch. A little while ago you posted an email asking for help with it. Is that email still current with regards with what needs to be done? ..tony.. On Fri, Feb 13, 2009 at 9:59 AM, Dan Kubb (dkubb) <[email protected]>wrote: > > Tony, > > > I just updated this ticket: > > > > http://datamapper.lighthouseapp.com/projects/20609-datamapper/tickets... > > I just ran the stand-alone script you attached to the above ticket > with dm-core/next (0.10.0) and it works. > > There's are over 500 commits and fixes made to the dm-core/next branch > not in the master branch. (master is what the 0.9 gem series is built > on) When the specs are run with each adapter it has over 18,000 > specs, with 84% code coverage. > > I am working on dm-core/next pretty much solo these days, so I can't > say specifically when it will be released, but *everything* aside from > SEL and many to many associations is better and more stable than dm- > core/master. (as an aside if anyone is interested in helping, the > sooner we can get it released) > > I can't speak on Gary's specific issue, but IMHO time looking at these > issues would be better spent using dm-core/next as a base. If the > issue is dm-validations specific, I'd suggest giving somebee a hand > with getting dm-core/next to work with specific dm-more plugins, like > dm-validations. I would not be surprised if once dm-validations is > updated you find the issue is already fixed. Work is happening in the > branch branch within his dm-more fork: > http://github.com/somebee/dm-more/tree/next > > -- > > Dan > (dkubb) > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
