This commit is contained in:
Toks
2015-05-02 11:12:30 -04:00
parent c8b41b4045
commit 5a8674d342
7 changed files with 89 additions and 4 deletions

View File

@@ -47,9 +47,11 @@ class PoolsController < ApplicationController
# need to do this in order for synchronize! to work correctly
@pool = Pool.find(params[:id])
@pool.attributes = params[:pool]
@pool.synchronize!
@pool.synchronize
@pool.save
flash[:notice] = "Pool updated"
unless @pool.errors.any?
flash[:notice] = "Pool updated"
end
respond_with(@pool)
end