fixes #79: When you remove a post from a pool, the post still shows the pool in its left sidebar

This commit is contained in:
albert
2011-09-15 19:15:10 -04:00
parent 4c33d0b8db
commit 5ee7bcd51b

View File

@@ -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