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

12 lines
274 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',
2015-10-14 11:19:48 -04:00
admin_revert_version_path(id: item.versions.last),
2015-10-14 09:21:16 -04:00
method: :post)
end
2015-10-09 08:17:29 -04:00
end