From 450049f2ec81d988c5da5fc3bad1ffb61cea18cf Mon Sep 17 00:00:00 2001 From: f Date: Tue, 17 Sep 2019 20:54:55 -0300 Subject: [PATCH] que los articulos no sean siempre borradores --- app/models/metadata_boolean.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/metadata_boolean.rb b/app/models/metadata_boolean.rb index f1a78b89..c4b4af00 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