I just filed a ticket<http://datamapper.lighthouseapp.com/projects/20609-datamapper/tickets/1095-sti-issue-when-loading-resources-via-base-model> in Lighthouse concerning STI. Basically, accessing STI classes via their base Model collection can cause issues. That is, given classes D1 and D2 that derived from B, using B.all.first will not work as you expect, since you will not have access to any fields you added to D1 or D2. The workaround I am using for now is to use D1.all or D2.all, but this won't work for everybody. The ticket has code that shows the issue more clearly.
..tony.. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
