A post on rails-talk led me to worry about the following: post.comments.first.title = 'Foo' post.comments.collect &:author #this line isn't really important - anything that requires loading the collection will do
Ta-da! post.comments.first.title reverts to its old value (because it's now a different object - the first item of the freshly loaded collection as opposed to just the result of find :first). This behaviour is rather unintuitive to me (and I would have thought conducive to hard to track down bugs) - Thoughts? Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
