module ActionAudit::ResqueConcern::ClassMethods

Public Instance Methods

around_perform_auditor(*args) { || ... } click to toggle source
# File lib/action_audit/resque_concern.rb, line 5
def around_perform_auditor(*args)
  logger_info "audit job with args #{args}"
  Auditor.start
  Auditor.add_params(args: args, job_name: self.name)
  yield
ensure
  Auditor.flush
end

Private Instance Methods

logger_info(str) click to toggle source
# File lib/action_audit/resque_concern.rb, line 16
def logger_info(str)
  Rails.logger.info "[Audit] [#{name}] #{str}"
end