Skip to content

Commit 1803fbe

Browse files
authored
Update README.md
1 parent fe84e5e commit 1803fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ The redis adapter only has one strategy: the deletion strategy.
2727

2828
```ruby
2929
# Only delete the "users" key, and keys that start with "cache".
30-
DatabaseCleaner[:redis].strategy = :deletion, { only: ["users", "cache*"] }
30+
DatabaseCleaner[:redis].strategy = :deletion, only: ["users", "cache*"]
3131

3232
# Delete all keys except the "users" key.
33-
DatabaseCleaner[:redis].strategy = :deletion, { except: ["users"] }
33+
DatabaseCleaner[:redis].strategy = :deletion, except: ["users"]
3434
```
3535

3636
## Adapter configuration options

0 commit comments

Comments
 (0)