Logging added for most models

This commit is contained in:
Priit Tark 2015-01-29 12:50:59 +02:00
parent 09a816d5a8
commit c3675c1b2a
46 changed files with 285 additions and 28 deletions

View file

@ -1,8 +1,8 @@
class ContactVersion < PaperTrail::Version
include LogTable
include UserEvents
# self.table_name = :post_versions
# self.sequence_name = :post_version_id_seq
self.table_name = :log_contacts
self.sequence_name = :log_contacts_id_seq
scope :deleted, -> { where(event: 'destroy') }
# include UserEvents
# scope :deleted, -> { where(event: 'destroy') }
end