5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:51:43 +00:00

no fallar si no tiene un diseño asignado

This commit is contained in:
f 2021-05-06 17:29:29 -03:00
parent f37ed785e3
commit 20d2cf6840

View file

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