mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
2e79ec71a542c2d2e7bedbe12eda0b5e177fb0e0
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
This code was needed to work around http://redmine.ruby-lang.org/issues/show/2494. Since that bug is now closed in Ruby, we can remove it.
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%