Fix transfers and form currencies (#1477)

This commit is contained in:
Zach Gollwitzer
2024-11-18 15:50:47 -05:00
committed by GitHub
parent fcb95207d7
commit 81d604f3d4
11 changed files with 41 additions and 19 deletions

View File

@@ -5,7 +5,10 @@ class Account::TradesController < ApplicationController
before_action :set_entry, only: :update
def new
@entry = @account.entries.account_trades.new(entryable_attributes: {})
@entry = @account.entries.account_trades.new(
currency: @account.currency,
entryable_attributes: {}
)
end
def index