]> git.openstreetmap.org Git - rails.git/commit
Reorder paginated items
authorAnton Khorev <tony29@yandex.ru>
Fri, 18 Jul 2025 08:37:01 +0000 (11:37 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 18 Jul 2025 08:37:01 +0000 (11:37 +0300)
commitfd4c9763a94fdf3e696635b2a4706679d8e40f2e
tree54a307ff6b1cdc80c6c1c9691fc61698e1f1d9f1
parentea7bd40f86f4d325264e82ba54af25dfd19def2e
Reorder paginated items

Sometimes items passed to get_page_items are already ordered. That order needs to be replaced by cursor_column instead of adding cursor_column after the existing order.
app/controllers/concerns/pagination_methods.rb
config/routes.rb
test/controllers/diary_entries_controller_test.rb