Skip to content

Releases: maxveldink/activerecord-ejection_seat

0.3.0 - T::Struct Support

19 Jan 12:32
Compare
Choose a tag to compare

[0.3.0] - 2023-01-19

  • Adds support for T::Struct props and association attributes in models
  • Updates minimum supported Ruby version to 3.0 and minimum ActiveRecord version to 6.0.
  • Switches to Minitest as the testing framework

0.2.0 - T::Enum Support

22 Dec 11:53
Compare
Choose a tag to compare

[0.2.0] - 2022-12-22

  • Adds support for ejecting to types with T::Enum fields.

0.1.0 - Proof of Concept

22 Jul 10:38
Compare
Choose a tag to compare

[0.1.0] - 2022-07-22

Added

  • Adds .ejects_to to ActiveRecord::Base that can be used to specify a Sorbet T::Struct that can be converted for that model.
  • If .ejects_to is specified on a model, adds the #eject method to the model to convert to a T::Struct. This is aliased to #to_struct.
  • If .ejects_to is specified on a model, adds the .buckle method to the model class to initialize from a T::Struct. This is aliased to #from_struct.