Skip to content

Commit

Permalink
Add instruction to specify after_commit_action dependency (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
drselump14 committed Jul 23, 2021
1 parent 8c65d7d commit e5317e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -259,6 +259,12 @@ Another option is to simply defer the update of counter caches to outside of the
```ruby
counter_culture :category, execute_after_commit: true
```
[NOTE] You need to manually specify the `after_commit_action` as dependency in the Gemfile to use this feature
```ruby
...
gem "after_commit_action"
...
```

### Manually populating counter cache values

Expand Down

0 comments on commit e5317e9

Please sign in to comment.