Fix undo link
This commit is contained in:
parent
d319211044
commit
caf7178189
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class Admin::BaseController < ApplicationController
|
|||
|
||||
def undo_link(item)
|
||||
view_context.link_to('Undo this change',
|
||||
admin_revert_version_path(id: item.version.last),
|
||||
admin_revert_version_path(id: item.versions.last),
|
||||
method: :post)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue