Releases: zaikio/serialize_attributes
Releases · zaikio/serialize_attributes
v1.0.1
v1.0.0
This version moves some of the internals around. Now the store columns are modelled as an
ActiveModel::AttributeSet
, rather than a simple hash. This allows the library to do
proper dirty tracking & casting, similar to how Rails itself works with regular attributes.
As a result of this change, unfortunately two (unused) features had to be removed:
- BREAKING Default values using a block are no longer supported
- BREAKING
Store#default
no longer accepts a secondcontext
argument - BREAKING Arrays no longer support default values (default is always
[]
)
However, the following features have been added:
- Typecasting is now transparent to the user so complex types can be immediately read back
after setting
v0.6.0
Add predicated methods to attributes.
v0.5.0
- Add
enum
type using validator to core library.
v0.4.1
- Fix typecasting of BigDecimal just after creation of object
- Add descriptive error message when deserializing a non-existing attribute
v0.4.0
- Add support for listing array attributes
v0.3.1
- Don't raise an error when used with ActiveRecord models where the schema has not yet loaded
v0.3.0
- Add
type
parameter toserialized_attribute_names
to filter by type.
v0.2.0
- Add support for
array: true
when specifying attributes - Test using Rails 7
v0.1.0
- Initial release