mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
14 lines
423 B
Ruby
14 lines
423 B
Ruby
# 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"
|
|
elsif File.basename($PROGRAM_NAME) == "rake"
|
|
PaperTrail.whodunnit = "#{`whoami`.strip}: rake #{ARGV.join ' '}"
|
|
end
|
|
|