Module: ActiveRecord::EjectionSeat::Ejectable

Included in:
Base
Defined in:
lib/activerecord-ejection_seat/ejectable.rb

Overview

Defines ‘#eject` `.buckle` methods for going between ActiveRecord models and Sorbet T::Structs.

Instance Method Summary collapse

Instance Method Details

#ejects_to(klass) ⇒ Object



8
9
10
11
# File 'lib/activerecord-ejection_seat/ejectable.rb', line 8

def ejects_to(klass)
  define_eject_method(klass)
  define_buckle_method(klass)
end