From a1d240d4068a454f299d46aa81182ee03f873de3 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 25 Jun 2020 16:34:02 -0300 Subject: [PATCH] no cambiar la gema si es un sitio custom --- app/models/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/site.rb b/app/models/site.rb index 1ebcba4..3cb268b 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -414,7 +414,7 @@ class Site < ApplicationRecord # TODO: Guardar la configuración también, quizás aprovechando algún # método de ActiveRecord para que lance un salvado recursivo. def sync_attributes_with_config! - config.theme = design.gem + config.theme = design.gem unless design.gem == 'sutty-theme-custom' config.description = description config.title = title config.url = url