Fix appending to collection (take 2)

This commit is contained in:
Matt-Yorkley
2021-02-05 16:29:20 +00:00
parent c827d77236
commit 25139178b5

View File

@@ -10,7 +10,9 @@ module Admin
blank_enterprise_fee = EnterpriseFee.new
blank_enterprise_fee.enterprise = current_enterprise
3.times { @collection.to_a << blank_enterprise_fee }
@collection = @collection.to_a
3.times { @collection << blank_enterprise_fee }
respond_to do |format|
format.html