mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 23:25:00 +00:00
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)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user