#inherited is called right after the class Foo statement. I want something that\'ll run only after the end statement that closes the c
#inherited
class Foo
end
If you are willing to assume your Ruby implements ObjectSpaces, you could could look up all model instances after the fact, and then modify them appropriately. Google suggests http://phrogz.net/ProgrammingRuby/ospace.html