From cc8dcee09aaa5754c85c19f09ad140eb8782b464 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 24 Jul 2018 19:15:23 -0300 Subject: [PATCH] no cachear los sitios en el singleton de sitios --- 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 d35ebe71..3dc8c5db 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -330,7 +330,7 @@ class Site # Obtener todos los directorios de sitios asociados a esta usuaria def self.all_for(usuaria) - @sites ||= Pathname.new(Site.site_path_for(usuaria)) + Pathname.new(Site.site_path_for(usuaria)) .children.map(&:expand_path).map(&:to_s).map do |j| next unless Site.jekyll? j