Fix accountable type references in new account flow (#395)

* Fix accountable type references in new account flow

* Add remaining references

* Refactor accountable type checking

* Refactor new account template to use account

* Refactor account create action

* Refactor account sidebar
This commit is contained in:
Josh Brown
2024-02-09 14:26:54 +00:00
committed by GitHub
parent 80f68b657c
commit f8174990ca
5 changed files with 27 additions and 29 deletions

View File

@@ -70,8 +70,8 @@
<p><%= t('.new_account') %></p>
<% end %>
<% Account.accountable_types.each do |type| %>
<%= render 'accounts/account_list', type: type.constantize %>
<% Accountable.types.each do |type| %>
<%= render 'accounts/account_list', type: Accountable.from_type(type) %>
<% end %>
</div>
</div>