<% if @is_model_controller && model = controller.class.get_model %>
<% if attachment_reflections = model.attachment_reflections.presence %>
<%= form_with(
model: @record,
url: "",
id: "rawFilesForm",
scope: "",
) do |form| %>
<% attachment_reflections.each do |field, ref| %>
<% end %>
<% end %>
<% end %>
<% end %>