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

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