1
0
Fork 0
dokkan-data-rails/app/controllers/admin/base_controller.rb
2015-10-14 11:19:48 -04:00

11 lines
274 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.versions.last),
method: :post)
end
end