que los articulos no sean siempre borradores
This commit is contained in:
parent
25efa15fbc
commit
450049f2ec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue