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::Structprops 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::Enumfields.
0.1.0 - Proof of Concept
[0.1.0] - 2022-07-22
Added
- Adds
.ejects_totoActiveRecord::Basethat can be used to specify a SorbetT::Structthat can be converted for that model. - If
.ejects_tois specified on a model, adds the#ejectmethod to the model to convert to aT::Struct. This is aliased to#to_struct. - If
.ejects_tois specified on a model, adds the.bucklemethod to the model class to initialize from aT::Struct. This is aliased to#from_struct.