Aman Gupta recently wrote the Sequel mailing list with a nice, compact solution to a question posed: is it possible to write an ActiveRecord-like “serialize” class method for Sequel::Model classes?

Aman answers, yes.