fixes issue if grouped association ids are all NULL in calculation #12544

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@ezr-ondrej

If you execute calculation grouped by association field and there are only NULL values, it throws ActiveRecord::RecordNotFound. It is diff just to show where the problem is better than in words, if anyone repairs it to other branch or in different style, please do that :)

@senny
Ruby on Rails member

you need to add a test-case to prevent regressions and illustrate the use-case.

@rafaelfranca
Ruby on Rails member

Closing as stale. Thank you for the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment