Fix deprecation warning in ActiveModel::Errors
From the 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
Showing
Please register or sign in to comment