class AuditLog::LogSubscriber

Public Instance Methods

audit(event) click to toggle source

ActiveSupport::Notifications.instrument('audit.audit_log', action: action)

# File lib/audit-log/log_subscriber.rb, line 6
def audit(event)
  prefix = color('AuditLog', CYAN)
  action = color(event.payload[:action], BLUE)
  debug "  #{prefix} #{action} (#{event.duration.round(1)}ms)"
end