1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib
Zoran Pesic 1de55c3596
don't import errors if attempting to merge with self
Prior to this change, attempting to merge an `ActiveModel::Error` instance
with itself would result in an endless loop where `ActiveModel::NestedError`s
would continue to be imported on the instance until interrupted. Though the
merging of identical objects is less likely to happen in practice, this method
should still be able to handle such a case gracefully. This change ensures
that instances attempting to merge on themselves return early rather than
hanging indefinitely.

Addresses https://github.com/rails/rails/issues/43737
2021-11-29 10:17:36 -08:00
..
active_model don't import errors if attempting to merge with self 2021-11-29 10:17:36 -08:00
active_model.rb Introduce ActiveModel::API 2021-09-15 18:24:47 +02:00