From cd613b053df85bbcd3b7fad961b68d569166a6b4 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 26 Oct 2023 18:05:58 -0300 Subject: [PATCH] fix: validar presencia de atributos (cherry picked from commit 2282acfc6e1b11f8ef23b3879d6c9c45ba6a1e7f) --- app/models/indexed_post.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/indexed_post.rb b/app/models/indexed_post.rb index 02679ec0..992c07c8 100644 --- a/app/models/indexed_post.rb +++ b/app/models/indexed_post.rb @@ -48,6 +48,8 @@ class IndexedPost < ApplicationRecord .flatten.uniq end + validates_presence_of :layout, :path, :locale + belongs_to :site # La ubicaciĆ³n del Post en el disco