diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 02:53:10 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 03:06:51 +0530 |
commit | a7fd564ab197a376336ebfa8bceaf14553e7628f (patch) | |
tree | 306cdf377208c311d7f5a245581764f0b64c3c7f /activerecord/test/cases/sanitize_test.rb | |
parent | 8f6da9483b28ec82e4577bf4cbe5209e2c750c84 (diff) | |
download | rails-a7fd564ab197a376336ebfa8bceaf14553e7628f.tar.gz rails-a7fd564ab197a376336ebfa8bceaf14553e7628f.tar.bz2 rails-a7fd564ab197a376336ebfa8bceaf14553e7628f.zip |
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"
Diffstat (limited to 'activerecord/test/cases/sanitize_test.rb')
0 files changed, 0 insertions, 0 deletions