From 74b68996675062ec8e1eed63f19cdc8e471a693e Mon Sep 17 00:00:00 2001 From: f Date: Fri, 6 Oct 2023 10:56:16 -0300 Subject: [PATCH] fix: algunos mixins por defecto --- app/models/metadata_template.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index 6012fe87..1ca184f0 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -7,10 +7,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, :value, :help, :required, :errors, :post, :layout, keyword_init: true) do - # Determina si el campo es indexable - def indexable? - false - end + include Metadata::FrontMatterConcern def inspect "#<#{self.class} site=#{site.name.inspect} post=#{post.id.inspect} value=#{value.inspect}>" @@ -124,11 +121,6 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, value.to_s end - # Decide si el metadato se coloca en el front_matter o no - def front_matter? - true - end - def array? type == 'array' end