> > I had that problem before too, it has to do with it being 'has 1'. To > get around it for now I did 'has n' and looped through the result with > '.each' even though only 1 record was going to be returned. If you do > '.first' the same thing will happen as 'has 1', so you need to use > something like '.each' to make it work right. > > Derek
Derek, it's funny I actually tried using has n, :action_users then calling action.action_users.first (but just like you mentioned you get the same results as has 1), Using has n AND looping through like you suggested has solved the problem of all the extra hits to the DB, thanks for your reply, I'm gonna go file a bug req on lighthouse about it now. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
