Open joeldrapper opened 1 year ago
Would this also extend to ActiveModel models too? Coz I have a real need to use the ActiveModel attributes API with literal types...
attribute :therapist_id, _Union(String, Symbol)
Yeah, that's what this is for.
A module that behaves like
Literal::Attributes
, but proxies all the setting and getting tosuper
. This could be used on ActiveRecord models, for example.