rails/activemodel/lib
Jean Boussier 108617eb74 Fix change_in_place? for binary serialized columns
Followup: https://github.com/rails/rails/pull/40383
Fix: https://github.com/rails/rails/issues/48255
Fix: https://github.com/rails/rails/pull/48262

If the serialized attribute is backed by a binary column, we must ensure
that both the `raw_old_value` and the `raw_new_value` are casted to
`Binary::Data`.

Additionally, `Binary::Data` must cast it's backing string in
`Encoding::BINARY` otherwise comparison of strings containing bytes
outside the ASCII range will fail.
2023-05-22 13:01:42 +02:00
..
active_model Fix change_in_place? for binary serialized columns 2023-05-22 13:01:42 +02:00
active_model.rb Include READMEs in main framework pages of the API documentation 2023-03-21 21:16:28 +01:00