fix #1724 for posts

This commit is contained in:
Toks
2013-06-09 11:40:34 -04:00
parent 99998561b6
commit 2d0c3d16a3
5 changed files with 42 additions and 0 deletions

View File

@@ -13,4 +13,12 @@ class PostVersionsController < ApplicationController
def search
end
def undo
@post_version = PostVersion.find(params[:id])
@post_version.undo!
respond_with(@post_version) do |format|
format.js
end
end
end