From 20d2cf684054536df4c67fcaca1ff10cf6ecea04 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 6 May 2021 17:29:29 -0300 Subject: [PATCH] =?UTF-8?q?no=20fallar=20si=20no=20tiene=20un=20dise=C3=B1?= =?UTF-8?q?o=20asignado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/site.rb b/app/models/site.rb index 1c62e9bc..3a699233 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -390,7 +390,7 @@ class Site < ApplicationRecord # Detecta si el tema actual es una gema def theme_available? - available_themes.include? design.gem + available_themes.include? design&.gem end # Devuelve el dominio actual