Skip to content

Commit

Permalink
[devtools] sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dry-bot committed Jan 18, 2021
1 parent b982608 commit 6ffdef1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
- Inferring predicates from class names is deprecated. It's very unlikely your code depends on it,
however, if it does, you'll get an exception with instructions. (@flash-gordon)

If you don't rely on inferring, just disable it with:

```ruby
Dry::Types::PredicateInferrer::Compiler.infer_predicate_by_class_name false
```

Otherwise, enable it explicitly:

```ruby
Dry::Types::PredicateInferrer::Compiler.infer_predicate_by_class_name true
```
Expand Down

0 comments on commit 6ffdef1

Please sign in to comment.