diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 4c1eacce06..e419bf70e0 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -11,7 +11,7 @@ # => # (if one Product with given price) # => ActiveRecord::SoleRecordExceeded (if more than one Product with given price) - user.api_keys.find_by_sole(key: key) + user.api_keys.find_sole_by(key: key) # as above ```