no fallar si no tiene un diseño asignado
This commit is contained in:
parent
f37ed785e3
commit
20d2cf6840
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue