mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Logging added for most models
This commit is contained in:
parent
09a816d5a8
commit
c3675c1b2a
46 changed files with 285 additions and 28 deletions
|
@ -1,6 +1,10 @@
|
|||
# the following line is required for PaperTrail >= 4.0.0 with Rails
|
||||
PaperTrail::Rails::Engine.eager_load!
|
||||
|
||||
PaperTrail::Version.module_eval do
|
||||
self.abstract_class = true
|
||||
end
|
||||
|
||||
# Store console and rake changes in versions
|
||||
if defined?(::Rails::Console)
|
||||
PaperTrail.whodunnit = "#{`whoami`.strip}: console"
|
||||
|
@ -8,6 +12,3 @@ elsif File.basename($PROGRAM_NAME) == "rake"
|
|||
PaperTrail.whodunnit = "#{`whoami`.strip}: rake #{ARGV.join ' '}"
|
||||
end
|
||||
|
||||
PaperTrail::Version.module_eval do
|
||||
self.abstract_class = true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue