Update example in README for :user_for_paper_trail [ci skip]
This commit is contained in:
parent
2b9a49c119
commit
c6e53a6df0
|
@ -457,7 +457,7 @@ You may want PaperTrail to call a different method to find out who is responsibl
|
|||
```ruby
|
||||
class ApplicationController
|
||||
def user_for_paper_trail
|
||||
logged_in? ? current_member : 'Public user' # or whatever
|
||||
logged_in? ? current_member.id : 'Public user' # or whatever
|
||||
end
|
||||
end
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue