Skip to content

Commit 8111e6e

Browse files
committed
Ensure correct pagination for non-unique orders
1 parent e2407cc commit 8111e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ajax-datatables-rails/extensions/simple_paginator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module SimplePaginator
55
private
66

77
def paginate_records(records)
8-
records.offset(offset).limit(per_page)
8+
records.offset(offset).limit(per_page).order(:id)
99
end
1010
end
1111
end
12-
end
12+
end

0 commit comments

Comments
 (0)