by petercooper · 14y ago · 0 comments
You may know this but I wanted to note that this was not a "revert" as such in case less informed third parties thought this was capricious API design at its worst.
Today's #all is rather different to yesterday's #find_all in that the former supports chaining and is lazy evaluated, whereas the latter used to immediately hit the DB and required criteria to be included all in the one call.
Enjoy your podcast.
Specifically, check out the README at https://github.com/rails/arel .. if you're familiar with Rails 2 and earlier, the sorts of things you'll see there probably seem quite alien to you. I believe AR had to change a lot to fit in with this approach to SQL generation.
(And thanks!)