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

Add scope to filter transactions from active accounts (#1810)

* Add scope to filter transactions from active accounts

* Add test for transfer match candidates with active accounts

* Refactor active account filtering for transactions and entries
This commit is contained in:
Josh Pigford 2025-02-05 11:52:44 -06:00 committed by GitHub
parent cf014bc24f
commit 4aba9d1c0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 69 additions and 1 deletions

View file

@ -7,7 +7,7 @@ class TransactionsController < ApplicationController
def index
@q = search_params
search_query = Current.family.transactions.search(@q)
search_query = Current.family.transactions.search(@q).active
set_focused_record(search_query, params[:focused_record_id], default_per_page: 50)