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