This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deprecation warning related to Rails 6.2
> You are passing a block expecting two parameters, > so the old hash behavior is simulated. As this is deprecated, > this will result in an ArgumentError in Rails 6.2. > DEPRECATION WARNING: Enumerating ActiveModel::Errors as a hash has been deprecated. > In Rails 6.1, `errors` is an array of Error objects, > therefore it should be accessed by a block with a single block > parameter like this: > > person.errors.each do |error| > attribute = error.attribute > message = error.message > end
- Loading branch information