Sha256: bd960af9ca79ceb6953d97c9c42208d2e48b8bf2f5de728a7b96d03835224c42

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

module ActionAuditor
  def self.auditors
    @@auditors ||= []
  end
  
  def self.auditors=(auditors)
    @@auditors = Array(auditors)
  end
  
  def self.log(message, parameters = {})
    auditors.each { |auditor| auditor.log(message, parameters) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action_auditor-0.1.0 lib/action_auditor.rb