Sha256: 8f45a0909e47add7ea461f3b4637f387f9bfa2b6b568256c167b86985dde1f26
Contents?: true
Size: 282 Bytes
Versions: 3
Compression:
Stored size: 282 Bytes
Contents
module ActiveAdmin module Audit module ControllerHelper def user_for_paper_trail send(ActiveAdmin.application.current_user_method) end def paper_trail_enabled_for_controller request.fullpath.start_with?('/admin') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems