Skip to content
This repository

AR preload_associations not available anymore #3022

Closed
mrreynolds opened this Issue September 14, 2011 · 3 comments

3 participants

Robert Glaser Jon Leighton Arun Agrawal
Robert Glaser

Either the ActiveRecord method preload_associations has been removed or renamed. What's the alternative? An explanation why this has been removed, would be much appreciated.

Arun Agrawal
Collaborator

Seems like removed here d90b4e2

Not sure why.

/cc @jonleighton

Jon Leighton

Hmm, yes, I didn't really think this was a public API, but I guess I should add a deprecation. The new way to do it is:

ActiveRecord::Associations::Preloader.new(records, associations).run
Robert Glaser

True that. But there are definitely edge cases where manually calling preload_associations made sense. Thanks for the hint!

Jon Leighton jonleighton closed this in 6c5295f September 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.