1
0
Fork 0
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:
Andy Stewart 2009-07-23 16:49:48 +01:00
parent 932708349e
commit ef09502001

View file

@ -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