mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
add pagination to account transactions list (#1095)
* add pagination to account transactions list * use global pagination partial
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user