Rails edge has a new feature for associations, where accessors for
associated objects check for staleness caused by updating foreign key
attributes directly:

    album = Album.first
    album.artist_id #=> 1
    album.artist # caches associated artist
    album.artist_id = 2
    album.artist # reloads associated artist

What do you think about adding this feature to sequel? I've encountered
several bugs that were caused by forgetting to manually reload an
association after the foreign key was changed, so I would find it useful.

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en.

Reply via email to