How to serialize hstore for Rails model


I have been using Virtus, and in the documentation of this project it says this gem dry-types can be a replacement of the Virtus gem, I’m using it to serialize/parse my hstore column in this way: (Using the Virtus gem)

Today I have tried to replace the Virtus implementation with the dry-types gem without success, could you please write an example of how to accomplish this with dry-types?


@victorhazbun Can you share with us what you tried (code examples are great), and how it specifically fell short of what you wanted to achieve?