que los articulos no sean siempre borradores

This commit is contained in:
f 2019-09-17 20:54:55 -03:00
parent 25efa15fbc
commit 450049f2ec
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -8,6 +8,6 @@ class MetadataBoolean < MetadataTemplate
# Convertir el valor que pasemos a boolean # Convertir el valor que pasemos a boolean
def value def value
self[:value].present? || document.data.fetch('draft', default_value) self[:value].present? || document.data.fetch(name.to_s, default_value)
end end
end end