From caf71781890daba835eb2dd7f279bfcb48261da2 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 14 Oct 2015 11:19:48 -0400 Subject: [PATCH] Fix undo link --- app/controllers/admin/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/base_controller.rb b/app/controllers/admin/base_controller.rb index 67c01ad..64c07bf 100644 --- a/app/controllers/admin/base_controller.rb +++ b/app/controllers/admin/base_controller.rb @@ -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