mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:41:43 +00:00
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
|
||||
def value
|
||||
self[:value].present? || document.data.fetch('draft', default_value)
|
||||
self[:value].present? || document.data.fetch(name.to_s, default_value)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue