post versions: fix undo action.

This commit is contained in:
evazion
2020-03-21 17:20:11 -05:00
parent ca27929249
commit 41ab3c9f63
3 changed files with 8 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ class PostVersionsController < ApplicationController
@post_version = authorize PostVersion.find(params[:id])
@post_version.undo!
respond_with(@post_version)
respond_with(@post_version, location: post_versions_path(search: { post_id: @post_version.post_id }))
end
private