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 have to repeat the same algorithm in many actions, you may consider extracting it as a method, or you can even override the pagy_get_vars method in your controller, and change the way it gets the count.
I'm using this activerecord query:
This fails when pagy attempts to get the count for the incidents table though because it includes the order statement but not the custom select:
Query generated by Pagy:
IMO order shouldn't matter for a count call right? Probably should just do
reorder(nil)
on the count call in pagy?The text was updated successfully, but these errors were encountered: