- [FEATURE] Add
attribute_typesmethod 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::Valuetype by @alan
Changes:
- [ENHANCEMENT] Wrap definition of attributes' readers and writers inside anonymous modules to be able to call
superby @Azdaroth
Changes:
- [BUGFIX] Pass
optionsargument toActiveModel::Type.lookupin 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