Defect #34985

Rails 6.1 replace ActiveModel::Errors #<< with #add

Added by Pavel Rosický 7 months ago. Updated 7 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Rails support
Target version:-
Resolution:Fixed Affected version:

Description

fixes
DEPRECATION WARNING: Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated. Please call `ActiveModel::Errors#add` instead.

errors.diff Magnifier (496 Bytes) Pavel Rosický, 2021-03-30 12:13


Related issues

Related to Redmine - Feature #29914: Migrate to Rails 6.1 New

Associated revisions

Revision 20898
Added by Go MAEDA 7 months ago

Fix "DEPRECATION WARNING: Calling '<<' to an ActiveModel::Errors message array in order to add an error is deprecated." (#29914, #34985).

History

#1 Updated by Pavel Rosický 7 months ago

refs #29914

#2 Updated by Marius BALTEANU 7 months ago

#3 Updated by Marius BALTEANU 7 months ago

  • Tracker changed from Patch to Defect

#4 Updated by Go MAEDA 7 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch as a part of #29914.

Also available in: Atom PDF