mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Try to call current_user regardless of its visibility.
This commit is contained in:
parent
932708349e
commit
ef09502001
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module PaperTrail
|
|||
|
||||
def set_whodunnit
|
||||
@@whodunnit = lambda {
|
||||
self.respond_to?(:current_user) ? self.current_user : nil
|
||||
self.send :current_user rescue nil
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue