Sha256: adc627c464d182bc514681f63c1842c6110f246db48c4d77102be6b32363678b
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
class Audit < ApplicationRecord serialize :audited_changes, Hash serialize :related_changes, Hash serialize :unconfirmed_changes, Hash serialize :extra, Hash belongs_to :auditable, polymorphic: true belongs_to :operator, polymorphic: true def audited_changes_i18n audited_changes.transform_keys { |key| auditable.class.human_attribute_name(key) } end end
Version data entries
5 entries across 5 versions & 1 rubygems