fix(champ): use public_id in views

This commit is contained in:
Paul Chavard 2024-03-21 12:01:55 +01:00
parent 15b5c5b6dd
commit 6ad0b901b6
10 changed files with 68 additions and 27 deletions

View file

@ -54,7 +54,7 @@ class Attachment::EditComponent < ApplicationComponent
end
def destroy_attachment_path
attachment_path(champ_id: champ&.id)
attachment_path(champ_id: champ&.public_id)
end
def attachment_input_class

View file

@ -35,7 +35,7 @@ class Attachment::MultipleComponent < ApplicationComponent
end
def empty_component_id
"attachment-multiple-empty-#{champ.id}"
"attachment-multiple-empty-#{champ.public_id}"
end
def auto_attach_url