When working with ActiveRecord models, sometimes you want to eject to a simpler, safer object. Enter Sorbet's T::Struct. This gem makes it much easier to target a Sorbet T::Struct and eject from an ActiveRecord model into the struct. It also allows you to buckle in from a simple struct to a new ActiveRecord model instance.
Required Ruby Version
>= 3.0.0
Authors
Max VelDink
Versions
-
0.3.2
-
source
- 0.3.2 source May 16, 2023 (1.13 MB)
-
-
0.3.1
-
source
- 0.3.1 source February 19, 2023 (1.12 MB)
-
-
0.3.0
-
source
- 0.3.0 source January 19, 2023 (1.08 MB)
-
-
0.2.0
-
source
- 0.2.0 source December 22, 2022 (759 KB)
-
-
0.1.0
-
source
- 0.1.0 source July 22, 2022 (11 KB)
-