How to customise serializer for ActiveRecord#serialize?
Don’t you know that ActiveRecord comes with the powerful
serialize class method that help you to serialize column value into YAML or JSON? What if you want to customise the serializer? In this article, the author walks you through how to create a naive encrypted JSON serializer.