fixes #75: History tags dont have a revert function

This commit is contained in:
albert
2011-09-15 18:57:50 -04:00
parent eddf35556a
commit ba4052e831
3 changed files with 10 additions and 4 deletions

View File

@@ -26,7 +26,9 @@ class PostsController < ApplicationController
@post = Post.find(params[:id])
@version = PostVersion.find(params[:version_id])
@post.revert_to!(@version)
respond_with(@post)
respond_with(@post) do |format|
format.js
end
end
private