forked from kaminari/kaminari
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: total_count with GROUPED STI relation
When querying a subtype on a STI table, a 'hard scope' is applied that is incompatible with the use of `model.from(subquery)` This fix removes any type restriction from the _outer_ query (because the subquery already has the restriction). Introduced by kaminari#979
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters