5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-03 23:15:45 +00:00

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
def value
self[:value].present? || document.data.fetch('draft', default_value)
self[:value].present? || document.data.fetch(name.to_s, default_value)
end
end