This commit is contained in:
Toks
2013-05-20 08:42:15 -04:00
parent 1fe8b59c7a
commit d99e9c5d81
3 changed files with 16 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ class PoolsController < ApplicationController
raise User::PrivilegeError
end
@pool.update_attribute(:is_deleted, true)
@pool.create_mod_action_for_delete
respond_with(@pool, :notice => "Pool deleted")
end
@@ -61,6 +62,7 @@ class PoolsController < ApplicationController
raise User::PrivilegeError
end
@pool.update_attribute(:is_deleted, false)
@pool.create_mod_action_for_undelete
respond_with(@pool, :notice => "Pool undeleted")
end