From 1911e4f4d455c769e21cb6c0989090fd4caaa514 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 20 Aug 2020 10:35:02 -0300 Subject: [PATCH] renovar la cache del sitio al aceptar o rechazar una invitacion --- app/controllers/usuaries_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/usuaries_controller.rb b/app/controllers/usuaries_controller.rb index 529d8be..deaa7a7 100644 --- a/app/controllers/usuaries_controller.rb +++ b/app/controllers/usuaries_controller.rb @@ -106,7 +106,7 @@ class UsuariesController < ApplicationController @site = find_site authorize SiteUsuarie.new(@site, current_usuarie) - current_usuarie.rol_for_site(@site).update_attribute :temporal, false + @site.touch if current_usuarie.rol_for_site(@site).update_attribute :temporal, false redirect_to sites_path end @@ -116,7 +116,7 @@ class UsuariesController < ApplicationController @site = find_site authorize SiteUsuarie.new(@site, current_usuarie) - current_usuarie.rol_for_site(@site).destroy + @site.touch if current_usuarie.rol_for_site(@site).destroy redirect_to sites_path end