fixes #1713
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user