fix(champ): use public_id in views
This commit is contained in:
parent
15b5c5b6dd
commit
6ad0b901b6
10 changed files with 68 additions and 27 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue