mirror of
https://github.com/we-promise/sure.git
synced 2026-04-23 22:14:08 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user