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.
Showing
想要评论请 注册 或 登录