app/components/avo/fields/trix_field/edit_component.html.erb in avo-2.16.0 vs app/components/avo/fields/trix_field/edit_component.html.erb in avo-2.16.1.pre.1.nativefields
- old
+ new
@@ -1,11 +1,11 @@
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, full_width: true do %>
<%= content_tag :div, class: "relative block overflow-x-auto max-w-full",
data: {
controller: "trix-field",
trix_field_target: "controller",
- resource_name: @resource.model_key,
- resource_id: @resource.model.methods.include?(:id) ? @resource.model&.id : nil,
+ resource_name: resource_name,
+ resource_id: resource_id,
attachments_disabled: @field.attachments_disabled,
attachment_key: @field.attachment_key,
hide_attachment_filename: @field.hide_attachment_filename,
hide_attachment_filesize: @field.hide_attachment_filesize,
hide_attachment_url: @field.hide_attachment_url,