mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Example :
posts = Post.scoped
posts.size # Fires "select count(*) from posts" and returns the count
posts.each {|p| puts p.name } # Fires "select * from posts" and loads post objects