Releases: maxveldink/activerecord-ejection_seat
Releases · maxveldink/activerecord-ejection_seat
0.3.0 - T::Struct Support
[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
[0.2.0] - 2022-12-22
- Adds support for ejecting to types with
T::Enum
fields.
0.1.0 - Proof of Concept
[0.1.0] - 2022-07-22
Added
- Adds
.ejects_to
toActiveRecord::Base
that can be used to specify a SorbetT::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 aT::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 aT::Struct
. This is aliased to#from_struct
.