On Feb 9, 2011, at 4:07 PM, John Firebaugh wrote:

> 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.

+1


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to