(5 secs) Here's the code, taken from my scaffolding extensions project.
It includes a module called Overridable, which is used to extend existing classes, such as subclasses of Sequel::Model or ActiveRecord::Base.
http://github.com/jeremyevans/scaffolding_extensions/blob/master/lib/scaffolding_extensions/overridable.rb#L3