This commit is contained in:
Toks
2013-07-11 21:14:18 -04:00
parent 171687c910
commit ab57c4fa09

View File

@@ -33,7 +33,7 @@ class PoolsController < ApplicationController
def create def create
@pool = Pool.create(params[:pool]) @pool = Pool.create(params[:pool])
respond_with(@pool, :notice => "Pool created") respond_with(@pool)
end end
def update def update
@@ -42,7 +42,7 @@ class PoolsController < ApplicationController
@pool.attributes = params[:pool] @pool.attributes = params[:pool]
@pool.synchronize! @pool.synchronize!
@pool.save @pool.save
respond_with(@pool, :notice => "Pool updated") respond_with(@pool)
end end
def destroy def destroy
@@ -52,7 +52,8 @@ class PoolsController < ApplicationController
end end
@pool.update_attribute(:is_deleted, true) @pool.update_attribute(:is_deleted, true)
@pool.create_mod_action_for_delete @pool.create_mod_action_for_delete
respond_with(@pool, :notice => "Pool deleted") flash[:notice] = "Pool deleted"
respond_with(@pool)
end end
def undelete def undelete
@@ -62,7 +63,8 @@ class PoolsController < ApplicationController
end end
@pool.update_attribute(:is_deleted, false) @pool.update_attribute(:is_deleted, false)
@pool.create_mod_action_for_undelete @pool.create_mod_action_for_undelete
respond_with(@pool, :notice => "Pool undeleted") flash[:notice] = "Pool undeleted"
respond_with(@pool)
end end
def revert def revert