11 lines
273 B
Ruby
11 lines
273 B
Ruby
class Admin::BaseController < ApplicationController
|
|
layout 'admin'
|
|
|
|
private
|
|
|
|
def undo_link(item)
|
|
view_context.link_to('Undo this change',
|
|
admin_revert_version_path(id: item.version.last),
|
|
method: :post)
|
|
end
|
|
end
|