From e172d1970b6e7d552c89afbad170e5b26c749112 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 21 Jul 2014 11:34:53 -0300 Subject: [PATCH] Expire LocationBlock cache on profile's location change --- app/controllers/my_profile/maps_controller.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/controllers/my_profile/maps_controller.rb b/app/controllers/my_profile/maps_controller.rb index a8ac94a..ebc910f 100644 --- a/app/controllers/my_profile/maps_controller.rb +++ b/app/controllers/my_profile/maps_controller.rb @@ -16,6 +16,7 @@ class MapsController < MyProfileController Profile.transaction do if profile.update_attributes!(params[:profile_data]) + BlockSweeper.expire_blocks profile.blocks.select{ |b| b.class == LocationBlock } session[:notice] = _('Address was updated successfully!') redirect_to :action => 'edit_location' end -- libgit2 0.21.2