From 00ed231c51571ffbca7f221abf546a1defc9513e Mon Sep 17 00:00:00 2001 From: SureBot Date: Fri, 17 Apr 2026 18:10:55 +0000 Subject: [PATCH] Fix loan account subtype not persisting on create The LoansController was missing :subtype in permitted_accountable_attributes, causing form submissions with account[subtype] to be silently ignored. This is the same bug that was fixed for Investment accounts in PR #1039 and Crypto accounts in PR #1022. Fixes: loan account subtype not saving (v0.7.0-alpha.4) --- app/controllers/loans_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/loans_controller.rb b/app/controllers/loans_controller.rb index 961c5acf0..e6066f4ad 100644 --- a/app/controllers/loans_controller.rb +++ b/app/controllers/loans_controller.rb @@ -2,6 +2,6 @@ class LoansController < ApplicationController include AccountableResource permitted_accountable_attributes( - :id, :rate_type, :interest_rate, :term_months, :initial_balance + :id, :subtype, :rate_type, :interest_rate, :term_months, :initial_balance ) end