activerecord-ejection_seat 0.2.0
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.
Gemfile:
=
安装:
=
Runtime 依赖 (2):
activerecord
>= 5.2
sorbet-runtime
>= 0