diff --git a/app/models/metadata_boolean.rb b/app/models/metadata_boolean.rb index f1a78b8..c4b4af0 100644 --- a/app/models/metadata_boolean.rb +++ b/app/models/metadata_boolean.rb @@ -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