1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 07:09:39 +02:00

add pagination to account transactions list (#1095)

* add pagination to account transactions list

* use global pagination partial
This commit is contained in:
Alexander Schrot 2024-08-16 15:00:05 +02:00 committed by GitHub
parent 9dda2606d5
commit c70a08aca2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 4 deletions

View file

@ -5,7 +5,10 @@ class Account::TransactionsController < ApplicationController
before_action :set_entry, only: :update
def index
@entries = @account.entries.account_transactions.reverse_chronological
@pagy, @entries = pagy(
@account.entries.account_transactions.reverse_chronological,
limit: params[:per_page] || "10"
)
end
def update