diff options
author | Aaron Wortham <wortham.aaron@gmail.com> | 2017-08-09 10:24:13 -0700 |
---|---|---|
committer | Aaron Wortham <wortham.aaron@gmail.com> | 2017-08-14 13:22:59 -0700 |
commit | 566f1fd068711dfe557bef63406f8dd6d41d473d (patch) | |
tree | b705a048d38792af7027821f4046280cc4c62185 /activerecord/test/models/vegetables.rb | |
parent | 3cfadd5fa2306ec1f382343220805546e1444cd8 (diff) | |
download | rails-566f1fd068711dfe557bef63406f8dd6d41d473d.tar.gz rails-566f1fd068711dfe557bef63406f8dd6d41d473d.tar.bz2 rails-566f1fd068711dfe557bef63406f8dd6d41d473d.zip |
Ensure sum honors distinct on has_many through
When using a has_many through relation and then summing an attribute
the distinct was not being used. This will ensure that when summing
an attribute, the number is only used once when distinct has been used.
Diffstat (limited to 'activerecord/test/models/vegetables.rb')
0 files changed, 0 insertions, 0 deletions