Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Association autorefresh plugin #17

Merged
1 commit merged into from
Feb 11, 2011

Commits on Feb 10, 2011

  1. Add AssociationAutoreloading plugin.

    The AssociationAutoreloading plugin makes many_to_one association
    accessor methods automatically reload the cached object whenever
    the association's foreign key is modified:
    
       album = Album.first
       album.artist_id #=> 1
       album.artist # caches associated artist
       album.artist_id = 2
       album.artist # reloads associated artist
    John Firebaugh committed Feb 10, 2011
    Configuration menu
    Copy the full SHA
    4d547ab View commit details
    Browse the repository at this point in the history