1
0
Fork 0
dokkan-data-rails/app/controllers/admin/base_controller.rb

12 lines
273 B
Ruby
Raw Normal View History

2015-10-09 08:17:29 -04:00
class Admin::BaseController < ApplicationController
layout 'admin'
2015-10-14 09:21:16 -04:00
private
def undo_link(item)
view_context.link_to('Undo this change',
admin_revert_version_path(id: item.version.last),
method: :post)
end
2015-10-09 08:17:29 -04:00
end