From 5ee7bcd51b06e284603b0bb38b6490da919e893d Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 15 Sep 2011 19:15:10 -0400 Subject: [PATCH] fixes #79: When you remove a post from a pool, the post still shows the pool in its left sidebar --- app/controllers/pools_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/pools_controller.rb b/app/controllers/pools_controller.rb index 93233b8c5..57aef5347 100644 --- a/app/controllers/pools_controller.rb +++ b/app/controllers/pools_controller.rb @@ -35,8 +35,11 @@ class PoolsController < ApplicationController end def update + # need to do this in order for synchronize! to work correctly @pool = Pool.find(params[:id]) - @pool.update_attributes(params[:pool]) + @pool.attributes = params[:pool] + @pool.synchronize! + @pool.save respond_with(@pool, :notice => "Pool updated") end