Skip to content

Fix ActiveRecord deprecation errors in pages_domain_spec.rb

Stan Hu requested to merge sh-fix-activerecord-deprecation-errors into master

What does this MR do and why?

This fixes the following deprecation warnings:

DEPRECATION WARNING: ActiveModel::Errors#keys is deprecated and will
be removed in Rails 6.2.

To achieve the same use:

  errors.attribute_names

How to set up and validate locally

Run rspec spec/models/pages_domain_spec.rb.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports