1
0
Fork 0

Fix undo link

This commit is contained in:
Andrew Tomaka 2015-10-14 11:19:48 -04:00
parent d319211044
commit caf7178189

View file

@ -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