diff options
author | Cade Truitt <cadetruitt@gmail.com> | 2014-07-02 20:09:05 -0500 |
---|---|---|
committer | Cade Truitt <cadetruitt@gmail.com> | 2014-07-02 20:21:36 -0500 |
commit | c8e48f08d528c0e4537bf1df1adac1fa8f4f48ff (patch) | |
tree | fa232948dc2392cc6fa846377cb167fc494f327d /activerecord/lib/active_record/relation/merger.rb | |
parent | beab403fc31199bbb01f1e6e1ba0f839af047afe (diff) | |
download | rails-c8e48f08d528c0e4537bf1df1adac1fa8f4f48ff.tar.gz rails-c8e48f08d528c0e4537bf1df1adac1fa8f4f48ff.tar.bz2 rails-c8e48f08d528c0e4537bf1df1adac1fa8f4f48ff.zip |
Add `:all` argument to `count` in `reset_counters`
Prior to this fix, if an association had a scope with a `select`,
calls to `reset_counters` would generate invalid SQL and throw:
ActiveRecord::StatementInvalid: [$DB_ADAPTER]: wrong number of
arguments to function COUNT()
References #10710, #13648
Diffstat (limited to 'activerecord/lib/active_record/relation/merger.rb')
0 files changed, 0 insertions, 0 deletions