On Mon, Jul 18, 2011 at 6:20 AM, sreid <[email protected]> wrote:
> I have an issue where I seem (unintentionally) to have more than 1 > activerecord object/instance referring to the same database record. > How do I ensure that when I update the record, all instances are > refreshed with the same data ? > > I don't think this can be done on a global level. You need to call reload on each of the instances to be sure that you have a fresh copy out of the db. > It sounds like "identity map" which is being added to activerecord for > rail 3.1 may solve this, but is there a solution for rails 3.0 ? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en. > > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

