From 0ee6d5a2abd08281c68dca83ea47c1bc2f750890 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 24 Feb 2021 17:37:13 -0300 Subject: [PATCH] inspeccionar metadatos --- app/models/metadata_template.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index 05db25f3..c763d78d 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -7,6 +7,10 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, :value, :help, :required, :errors, :post, :layout, keyword_init: true) do + def inspect + "#<#{self.class} site=#{site.name.inspect} post=#{post.id.inspect} value=#{value.inspect}>" + end + # Queremos que los artículos nuevos siempre cacheen, si usamos el UUID # siempre vamos a obtener un item nuevo. def cache_key