You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently building an API with geared_pagination and was wondering if it would make sense to add unscope(:select, :order, :group) to GearedPagination::Recordset#records_count as it otherwise causes some trouble with more complex queries. I don't think select, order and group are required here. But maybe I'm missing something?
For example here is a query that I'm trying to resolve:
Hi there
I'm currently building an API with geared_pagination and was wondering if it would make sense to add
unscope(:select, :order, :group)
to GearedPagination::Recordset#records_count as it otherwise causes some trouble with more complex queries. I don't think select, order and group are required here. But maybe I'm missing something?For example here is a query that I'm trying to resolve:
Which results in an
TypeError: no implicit conversion of Integer into Hash
exception because thecount
result is grouped byevents.id
.The text was updated successfully, but these errors were encountered: