mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +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
|
@ -18,12 +18,12 @@ module Versions
|
|||
before_update :add_updator
|
||||
|
||||
def add_creator
|
||||
self.creator_str = ::PaperTrail.whodunnit
|
||||
self.creator_str = ::PaperTrail.request.whodunnit
|
||||
true
|
||||
end
|
||||
|
||||
def add_updator
|
||||
self.updator_str = ::PaperTrail.whodunnit
|
||||
self.updator_str = ::PaperTrail.request.whodunnit
|
||||
true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue