Hi, I implemented the event base class in my app on Dry::Struct as shown in some shared tutorials.
One thing I'm not liking about it currently is how objects like Time and Date are serialized when saved by ActiveRecord (e.g. !ruby/object:DateTime 2020-08-07 14:27:32.000000000 -07:00). In my mind it would be better to save them are iso8601 string so they can be consumed platform agnostic and also take up less space, esp when stored in volume.
I saw the guides for custom mappers and serializers in the docs, so I was just wondering if a specific implementation for this issue already existed and if not if there is interest in submitting something.
Hi, I implemented the event base class in my app on
Dry::Struct
as shown in some shared tutorials.One thing I'm not liking about it currently is how objects like
Time
andDate
are serialized when saved by ActiveRecord (e.g.!ruby/object:DateTime 2020-08-07 14:27:32.000000000 -07:00
). In my mind it would be better to save them are iso8601 string so they can be consumed platform agnostic and also take up less space, esp when stored in volume.I saw the guides for custom mappers and serializers in the docs, so I was just wondering if a specific implementation for this issue already existed and if not if there is interest in submitting something.