Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uniqueness: don't use a private Rails API
`ActiveRecord::Validations#_validations` is a private API. Fortunately, Rails provides an API that does exactly what's needed here, and it's been in Rails since at least 3.0.0, so let's use that instead.
- Loading branch information