Sha256: 544569e57d6fa7c08e78d61a311d4f09b33bc8f9271bf33df68a5b5bf90e11a9
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
module ActionAuditor module Auditor class ActiveRecord < Base class LoggedAction < ::ActiveRecord::Base set_table_name "logged_actions" serialize :parameters end def clear! LoggedAction.destroy_all end def log(message, parameters = {}) LoggedAction.create :message => message, :parameters => parameters end def size LoggedAction.count end def last LoggedAction.last end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_auditor-0.1.0 | lib/action_auditor/auditor/active_record.rb |