diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-04-13 18:45:20 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-04-13 18:45:20 -0700 |
commit | 04c8e48311231d0b8332a7050a48defc9d7b075e (patch) | |
tree | b2ffeda286cf212d3acf67c11b01e013f4c26424 /spec/active_relation/unit/relations/join_spec.rb | |
parent | 4466409205d697f854f98ac0908a792a1601ecc6 (diff) | |
download | rails-04c8e48311231d0b8332a7050a48defc9d7b075e.tar.gz rails-04c8e48311231d0b8332a7050a48defc9d7b075e.tar.bz2 rails-04c8e48311231d0b8332a7050a48defc9d7b075e.zip |
new conception of grouping and aggregation functionality
Diffstat (limited to 'spec/active_relation/unit/relations/join_spec.rb')
-rw-r--r-- | spec/active_relation/unit/relations/join_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/active_relation/unit/relations/join_spec.rb b/spec/active_relation/unit/relations/join_spec.rb index 22b0a9f237..c1a13cee6e 100644 --- a/spec/active_relation/unit/relations/join_spec.rb +++ b/spec/active_relation/unit/relations/join_spec.rb @@ -97,8 +97,8 @@ module ActiveRelation describe 'when joining aggregated relations' do before do @aggregation = @relation2 \ - .aggregate(@relation2[:user_id], @relation2[:id].count.as(:cnt)) \ .group(@relation2[:user_id]) \ + .project(@relation2[:user_id], @relation2[:id].count.as(:cnt)) \ .as('photo_count') end |