5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 07:31:41 +00:00

fixup! feat: fecha de creación

This commit is contained in:
f 2023-09-13 17:53:51 -03:00
parent 6b1eccade3
commit 35e8a08716
No known key found for this signature in database

View file

@ -219,7 +219,7 @@ class Post
# La fecha de creación inmodificable del post
def created_at
@metadata[:created_at] ||= MetadataCreatedAt.new(document: document, site: site, layout: layout, name: :created_at, type: :timestamp, post: self, required: true)
@metadata[:created_at] ||= MetadataCreatedAt.new(document: document, site: site, layout: layout, name: :created_at, type: :created_at, post: self, required: true)
end
# Detecta si es un atributo válido o no, a partir de la tabla de la