This project is archived and is in readonly mode.
Changeset [a7fd564ab197a376336ebfa8bceaf14553e7628f] by Pratik Naik
December 25th, 2009 @ 09:36 PM
Add Model.select/group/order/limit/joins/conditions/preload/eager_load class methods returning a lazy relation.
Examples :
posts = Post.select('id).order('name') # Returns a lazy relation
posts.each {|p| puts p.id } # Fires "select id from posts order by name"
http://github.com/rails/rails/commit/a7fd564ab197a376336ebfa8bceaf1...
Committed by Pratik Naik
- M activerecord/lib/active_record/base.rb
- M activerecord/lib/active_record/named_scope.rb
- M activerecord/lib/active_record/relation.rb
- M activerecord/test/cases/relations_test.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>