Hash serialization in an ActiveRecord model
We don’t often think about serialization in Rails but it can be very useful sometimes. This small article contains a little trick if you want to serialize a Hash attribute, for example in order to store preferences or options in the database.
Post a comment