diff options
author | Fadzril Muhamad & Joseph Palermo <pair+fadzril+jpalermo@pivotallabs.com> | 2011-05-11 17:19:06 +0800 |
---|---|---|
committer | Joseph Palermo <pair+jpalermo@pivotallabs.com> | 2011-05-12 04:05:24 +0800 |
commit | 1db49ced45819c7284dfd63aad791ead3a26203e (patch) | |
tree | 878f17aa7ac3fbc1fc9c068ea43ce4d2e6ebc98a /activerecord/lib/active_record/railtie.rb | |
parent | 1dd90f8f12d1904ee3db37f9390df3246bb2712b (diff) | |
download | rails-1db49ced45819c7284dfd63aad791ead3a26203e.tar.gz rails-1db49ced45819c7284dfd63aad791ead3a26203e.tar.bz2 rails-1db49ced45819c7284dfd63aad791ead3a26203e.zip |
Bug fixes:
- If doing a count on a relation that has an :include and a :join, it does a distinct even though it should not.
- When doing a count on a relation that has an :include, it always falls back to a old style left join when performing the count. Looks like it was broken here:
https://github.com/rails/rails/commit/b9599502c9e738a5a1513e75d08f8d40ed408265
Diffstat (limited to 'activerecord/lib/active_record/railtie.rb')
0 files changed, 0 insertions, 0 deletions