Skip to content

Commit

Permalink
Add note about touch audits to README
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorrison committed Jan 11, 2024
1 parent cd0ac65 commit a609166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ end

### Specifying callbacks

By default, a new audit is created for any Create, Update or Destroy action. You can, however, limit the actions audited.
By default, a new audit is created for any Create, Update, Touch (Rails 6+) or Destroy action. You can, however, limit the actions audited.

```ruby
class User < ActiveRecord::Base
# All fields and actions
# audited

# Single field, only audit Update and Destroy (not Create)
# Single field, only audit Update and Destroy (not Create or Touch)
# audited only: :name, on: [:update, :destroy]
end
```
Expand Down

0 comments on commit a609166

Please sign in to comment.