mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Add default currencies to forms based on preference (#994)
* Add default currencies to forms based on preference * Remove dev debugging
This commit is contained in:
@@ -23,10 +23,7 @@ class AccountsController < ApplicationController
|
||||
end
|
||||
|
||||
def new
|
||||
@account = Account.new(
|
||||
balance: nil,
|
||||
accountable: Accountable.from_type(params[:type])&.new
|
||||
)
|
||||
@account = Account.new(accountable: Accountable.from_type(params[:type])&.new)
|
||||
|
||||
if params[:institution_id]
|
||||
@account.institution = Current.family.institutions.find_by(id: params[:institution_id])
|
||||
|
||||
Reference in New Issue
Block a user