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,10 +0,0 @@
module LogTable
extend ActiveSupport::Concern
included do
# one plase to define log tables
log_table_name = "log_#{table_name.sub('_versions', '').tableize}"
self.table_name = log_table_name
self.sequence_name = log_table_name
end
end