Having distinct layers that don't know each other isn't always a good idea.
Just wanted to illustrate that "layers" shouldn't always be separate.
Actually I'm not sure how separate they are in ActiveRecord. I wanted to mostly point out that generating the SQL was done by a separate library.
-- /Jacob Carlborg