This commit is contained in:
albert
2013-03-22 10:28:32 -07:00
parent 6933cfba26
commit 364c6fd329
3 changed files with 8 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ class WikiPagesController < ApplicationController
@wiki_page = WikiPage.find(params[:id])
@version = WikiPageVersion.find(params[:version_id])
@wiki_page.revert_to!(@version)
flash[:notice] = "Page was reverted"
respond_with(@wiki_page)
end