5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:46:21 +00:00

Merge branch 'issue-14329' into 'rails'

fix: permitir sitios sin layouts #14329

See merge request sutty/sutty!260
This commit is contained in:
fauno 2024-05-18 14:22:11 +00:00
commit fa82fc8a1a

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