Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.1 KB

Changelog.md

File metadata and controls

45 lines (26 loc) · 1.1 KB

ActiveModelAttributes Changelog

master

1.6.0

  • [FEATURE] Add attribute_types method to match behaviour that Rails 6 ActiveModel::Attributes provides by @shevaun

1.5.0

  • [ENHANCEMENT] Initialize field with default value upon read by @jughead

1.4.0

  • [FEATURE] Add methods for introspection of types and attributes by @fsateler

1.3.0

  • [FEATURE] Allow untyped attributes by defaulting to the ActiveModel::Type::Value type by @alan

1.2.0

Changes:

  • [ENHANCEMENT] Wrap definition of attributes' readers and writers inside anonymous modules to be able to call super by @Azdaroth

1.1.0

Changes:

  • [BUGFIX] Pass options argument to ActiveModel::Type.lookup in attribute writers by @jughead

1.0.0

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

0.1.0

Update notes:

  • None

Changes:

  • [FEATURE] Basic implementation by @Azdaroth