G5/storext: Add type-casting and other features on top of ActiveRecord::Store.store_accessor
19-Oct-2024 419
ActiveRecord::Store allows you to put data, like a hash, in a single column. The problem is that when you retrieve these values, they are strings. Storext aims to solve that. This is a layer on top of ActiveRecord::Store that uses Virtus to typecast the values and add other options like:
.
G5/storext: Add type-casting and other features on top of ActiveRecord::Store.store_accessor #ruby #rubydeveloper #rubyonrails #G5/storext: #type-casting #other #features #ActiveRecord::Store.store_accessor #activerecord::store.store_accessor #type-casting https://rubyonrails.ba/link/g5-storext-add-type-casting-and-other-features-on-top-of-activerecord-store-store_accessor