mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:46:22 +00:00
feat: no agregar licencia si la plantilla no lo soporta
This commit is contained in:
parent
abacabff8e
commit
46c20cae7d
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
|||
|
||||
# Crea la licencia del sitio para cada locale disponible en el sitio
|
||||
def add_licencias
|
||||
return unless site.layout? :license
|
||||
|
||||
site.locales.each do |locale|
|
||||
next unless I18n.available_locales.include? locale
|
||||
|
||||
|
|
Loading…
Reference in a new issue