Project

General

Profile

« Previous | Next » 

Revision 3fd6a0c1

Added by Dominic Cleal over 7 years ago

fixes #18208 - replace audited-activerecord with audited (#4218)

View differences:

app/models/host/managed.rb
has_associated_audits
#redefine audits relation because of the type change (by default the relation will look for auditable_type = 'Host::Managed')
has_many :audits, -> { where(:auditable_type => 'Host') }, :foreign_key => :auditable_id,
:class_name => Audited.audit_class.name
:class_name => 'Audited::Audit'
# some shortcuts
alias_attribute :arch, :architecture

Also available in: Unified diff