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

wants to merge 1 commit into


None yet

3 participants


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 :)

Ruby on Rails member

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

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