From 08b07a51581ced69509e84eef95b4c91ce36e171 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 3 May 2024 12:42:05 -0300 Subject: [PATCH] fix: permitir sitios sin layouts #14329 --- app/models/site.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/site.rb b/app/models/site.rb index d47a8e50..9c94c31b 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -289,6 +289,8 @@ class Site < ApplicationRecord # # @return [Hash] { post: Layout } def layouts + return {} if data['layouts'].blank? + # Crea un Struct dinĂ¡mico cuyas llaves son los nombres de todos los # layouts. Si pasamos un layout que no existe, obtenemos un # NoMethodError