mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 20:36:21 +00:00
feat: no agregar licencia si la plantilla no lo soporta
This commit is contained in:
parent
67e11e1f3c
commit
601bf2e636
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