mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Use PaperTrail.request.whodunnit
PaperTrail.whodunnit was removed from PaperTrail 10.x
This commit is contained in:
parent
97db4fe4f9
commit
1e1f808c8d
10 changed files with 15 additions and 15 deletions
|
@ -1,9 +1,9 @@
|
|||
# Store console and rake changes in versions
|
||||
if defined?(::Rails::Console)
|
||||
PaperTrail.whodunnit = "console-#{`whoami`.strip}"
|
||||
PaperTrail.request.whodunnit = "console-#{`whoami`.strip}"
|
||||
elsif File.basename($PROGRAM_NAME) == 'rake'
|
||||
# rake username does not work when spring enabled
|
||||
PaperTrail.whodunnit = "rake-#{`whoami`.strip} #{ARGV.join ' '}"
|
||||
PaperTrail.request.whodunnit = "rake-#{`whoami`.strip} #{ARGV.join ' '}"
|
||||
end
|
||||
|
||||
class PaperSession
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue