Class: AuditEvent

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/audit_event.rb

Overview

Schema Information

Table name: audit_events

id          :integer          not null, primary key
author_id   :integer          not null
type        :string           not null
entity_id   :integer          not null
entity_type :string           not null
details     :text
created_at  :datetime
updated_at  :datetime

Direct Known Subclasses

SecurityEvent

Instance Method Summary collapse

Instance Method Details

#author_nameObject


30
31
32
# File 'app/models/audit_event.rb', line 30

def author_name
  self.user.name
end

#initialize_detailsObject


26
27
28
# File 'app/models/audit_event.rb', line 26

def initialize_details
  self.details = {} if details.nil?
end