5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-04 23:26:56 +00:00

fix: usar MetadataContent#to_s para procesar los adjuntos

This commit is contained in:
f 2023-02-01 17:12:27 -03:00
parent 04622751ef
commit 0781bee40a
2 changed files with 2 additions and 2 deletions

View file

@ -4,6 +4,6 @@
post: post, attribute: attribute, metadata: metadata post: post, attribute: attribute, metadata: metadata
.new-editor.content{ id: attribute } .new-editor.content{ id: attribute }
= text_area_tag "#{base}[#{attribute}]", metadata.value.html_safe, = text_area_tag "#{base}[#{attribute}]", metadata.to_s.html_safe,
dir: dir, lang: locale, dir: dir, lang: locale,
**field_options(attribute, metadata), class: 'd-none' **field_options(attribute, metadata), class: 'd-none'

View file

@ -38,4 +38,4 @@
- cache [metadata, I18n.locale] do - cache [metadata, I18n.locale] do
%section.content.pb-3{ id: attr, dir: dir } %section.content.pb-3{ id: attr, dir: dir }
= @post.public_send(attr).value.html_safe = @post.public_send(attr).to_s.html_safe