Update warning_about_not_setting_whodunnit.md
This commit is contained in:
parent
f06c5748e7
commit
1c88d8cafd
|
@ -16,7 +16,7 @@ See the PaperTrail readme for an example (https://git.io/vrsbt).
|
||||||
If you no longer want to track whodunnit, you may disable this
|
If you no longer want to track whodunnit, you may disable this
|
||||||
warning by overriding user_for_paper_trail to return nil.
|
warning by overriding user_for_paper_trail to return nil.
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
# in application_controller.rb
|
# in application_controller.rb
|
||||||
def user_for_paper_trail
|
def user_for_paper_trail
|
||||||
nil # disable whodunnit tracking
|
nil # disable whodunnit tracking
|
||||||
|
|
Loading…
Reference in New Issue