mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-01 18:31:41 +00:00
Merge branch 'issue-14329' into production.panel.sutty.nl
This commit is contained in:
commit
7ebd7c5d8a
1 changed files with 2 additions and 0 deletions
|
@ -290,6 +290,8 @@ class Site < ApplicationRecord
|
||||||
#
|
#
|
||||||
# @return [Hash] { post: Layout }
|
# @return [Hash] { post: Layout }
|
||||||
def layouts
|
def layouts
|
||||||
|
return {} if data['layouts'].blank?
|
||||||
|
|
||||||
# Crea un Struct dinámico cuyas llaves son los nombres de todos los
|
# Crea un Struct dinámico cuyas llaves son los nombres de todos los
|
||||||
# layouts. Si pasamos un layout que no existe, obtenemos un
|
# layouts. Si pasamos un layout que no existe, obtenemos un
|
||||||
# NoMethodError
|
# NoMethodError
|
||||||
|
|
Loading…
Reference in a new issue