This commit is contained in:
Toks
2013-04-30 19:54:00 -04:00
parent c5f8812999
commit 240eba56c2
3 changed files with 5 additions and 2 deletions

View File

@@ -68,6 +68,8 @@ class PoolsController < ApplicationController
@pool = Pool.find(params[:id])
@version = PoolVersion.find(params[:version_id])
@pool.revert_to!(@version)
respond_with(@pool, :notice => "Pool reverted")
respond_with(@pool) do |format|
format.js
end
end
end