mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 06:31:44 +00:00
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
|
# Detecta si el tema actual es una gema
|
||||||
def theme_available?
|
def theme_available?
|
||||||
available_themes.include? design.gem
|
available_themes.include? design&.gem
|
||||||
end
|
end
|
||||||
|
|
||||||
# Devuelve el dominio actual
|
# Devuelve el dominio actual
|
||||||
|
|
Loading…
Reference in a new issue