mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Bump pagy with breaking changes fix (#1016)
This commit is contained in:
parent
75ded1c18f
commit
e7dc6b88ea
3 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ class TransactionsController < ApplicationController
|
|||
def index
|
||||
@q = search_params
|
||||
result = Current.family.entries.account_transactions.search(@q).reverse_chronological
|
||||
@pagy, @transaction_entries = pagy(result, items: params[:per_page] || "50")
|
||||
@pagy, @transaction_entries = pagy(result, limit: params[:per_page] || "50")
|
||||
|
||||
@totals = {
|
||||
count: result.select { |t| t.currency == Current.family.currency }.count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue