rails/rails — pull request #7792 by seejee (2012-09-29 22:43:18+00:00)
Title: Fixes Issue #7490: Chained scopes will preload properly

If scopes are chained and they are all preloaded, only the last scope was being preloaded. Added a test and made the fix suggested in Issue #7490.