Skip to content

Commit 2a12fe0

Browse files
authored
Merge pull request rails#40985 from kivikakk/find-sole-by-changelog
fix CHANGELOG entry for rails#40768
2 parents e19f95f + 2717b08 commit 2a12fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# => #<Product ...> (if one Product with given price)
1212
# => ActiveRecord::SoleRecordExceeded (if more than one Product with given price)
1313

14-
user.api_keys.find_by_sole(key: key)
14+
user.api_keys.find_sole_by(key: key)
1515
# as above
1616
```
1717

0 commit comments

Comments
 (0)