ff4986b917
This behavior was broken by 36e9be85. When the value is assigned directly, either through mass assignment or directly assigning a hash, the hash gets passed through to this writer method directly. While this is intended to handle certain cases, when an explicit converter has been provided, we should continue to use that instead. The positioning of the added guard caused the new behavior to override that case. Fixes #25210
648 B
648 B
-
Ensure hashes can be assigned to attributes created using
composed_of
. Fixes #25210.Sean Griffin
-
Fix logging edge case where if an attribute was of the binary type and was provided as a Hash.
Jon Moss
-
Handle JSON deserialization correctly if the column default from database adapter returns
''
instead ofnil
.Johannes Opper
-
Introduce ActiveRecord::TransactionSerializationError for catching transaction serialization failures or deadlocks.
Erol Fornoles
Please check 5-0-stable for previous changes.