Add "logo" variant in account dropdown on transfer form (#1241)

* feat: Add :logo variant in account dropdown on transfer form

* fix test

* fix test

* fix: avoid multiple queries on accounts
This commit is contained in:
Alessio Cappa
2026-03-22 23:59:57 +01:00
committed by GitHub
parent d6a0a3c588
commit ddf1c732d3
3 changed files with 16 additions and 10 deletions

View File

@@ -6,6 +6,13 @@ class TransfersController < ApplicationController
def new
@transfer = Transfer.new
@from_account_id = params[:from_account_id]
@accounts = Current.family.accounts
.alphabetically
.includes(
:account_providers,
logo_attachment: :blob
)
end
def show