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

  1. 0.3.2
    1. source

      1. 0.3.2 source May 16, 2023 (1.13 MB)
  2. 0.3.1
    1. source

      1. 0.3.1 source February 19, 2023 (1.12 MB)
  3. 0.3.0
    1. source

      1. 0.3.0 source January 19, 2023 (1.08 MB)
  4. 0.2.0
    1. source

      1. 0.2.0 source December 22, 2022 (759 KB)
  5. 0.1.0
    1. source

      1. 0.1.0 source July 22, 2022 (11 KB)

Pushed by

SHA 256 checksum