- [FEATURE] Add
attribute_types
method to match behaviour that Rails 6 ActiveModel::Attributes provides by @shevaun
- [ENHANCEMENT] Initialize field with default value upon read by @jughead
- [FEATURE] Add methods for introspection of types and attributes by @fsateler
- [FEATURE] Allow untyped attributes by defaulting to the
ActiveModel::Type::Value
type by @alan
Changes:
- [ENHANCEMENT] Wrap definition of attributes' readers and writers inside anonymous modules to be able to call
super
by @Azdaroth
Changes:
- [BUGFIX] Pass
options
argument toActiveModel::Type.lookup
in attribute writers by @jughead
Update notes:
- Breaking change: the attribute's setter now calls #cast method on type instead of #deserialize. If you have defined any custom type, just rename the method from #deserialize to #cast
Changes:
- [ENHANCEMENT] Use #cast method from types instead of #deserialize by @Azdaroth
Update notes:
- None
Changes:
- [FEATURE] Basic implementation by @Azdaroth