5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 08:16:21 +00:00

fix: permitir sitios sin layouts #14329

This commit is contained in:
f 2024-05-03 12:42:05 -03:00
parent 30621bb219
commit 08b07a5158
No known key found for this signature in database

View file

@ -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