In 0.9, this trick would not work if one was using multiple repositories. Has this been fixed for 0.10?
..tony.. On Tue, Jan 5, 2010 at 3:00 AM, Ashley Moran <ashley.mo...@patchspace.co.uk>wrote: > > On Dec 30, 2009, at 6:57 pm, RailinAndWailin wrote: > > > Thanks, Gary. I think i see the light. > > Basically, I just have to remember to .reload. > > It's much safer to use an identity map though. All you have to do is wrap > your code in > > repository(:default) do > # ... > end > > And then a whole class of bugs is eliminated from your code. > > HTH > > Ashley > > -- > http://www.patchspace.co.uk/ > http://www.linkedin.com/in/ashleymoran > > -- > > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to datamap...@googlegroups.com. > To unsubscribe from this group, send email to > datamapper+unsubscr...@googlegroups.com<datamapper%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.