5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-09-29 19:16:56 +00:00

Merge branch 'vali-date' into staging

This commit is contained in:
f 2021-05-14 17:42:19 -03:00
commit d6c41d468b

View file

@ -8,6 +8,8 @@ class MetadataDocumentDate < MetadataTemplate
end end
def value_from_document def value_from_document
return nil unless document.path
document.date document.date
end end
@ -46,7 +48,7 @@ class MetadataDocumentDate < MetadataTemplate
value_from_document || default_value value_from_document || default_value
end end
else else
value_from_document || default_value self[:value] || value_from_document || default_value
end end
end end