-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 5.0.0
-
Component/s: None
This commit was introduced to fix behavior around extra attributes on documents and cloning (something our team had previously patched for 4.x).
It includes `Attributes::Dynamic` as part of the `clone` method - meaning that the behavior of the class could change totally based on whether or not a document has been cloned yet. As a result it breaks expectations about what should not be allowed on the class, and is probably quite slow as it would force a method cache clear.
- is depended on by
-
MONGOID-4019 UnknownAttribute Exception when cloning documents containing deprecated attributes
- Closed