diff --git a/app/models/site.rb b/app/models/site.rb index 8ccf7afb..8f393f3a 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -290,6 +290,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