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
If you want to do pagination without counting make sure that you use the sort order in which the entries are displayed to do the paging. Paging without OFFSET is doable if the only order in which you display entries is done on an always available column in a table. Doing this when developers use a different gem to order (and select) entries to display is much harder than you think.
Maybe it's time to band together with the ransack people and start adding ActiveOrdering to Rails to make that happen?
Hi,
I'm using v1.2.1, and trying to monkey patch to always use without_count, but no success. I was trying something like this in an initializer:
But it seems that the initialization already happened (
page
method was created before my patch gets applied).Any ideas how I can achieve that?
An option to always use without_count would be perfect, but I can live with a small monkey patch 😄
Related issue: #944
The text was updated successfully, but these errors were encountered: