I have just published a little gem that allows to store references to classes and modules in active record attributes. I am also thinking of contributing this code to rails-core. (I just need to port the tests from rspec and move the README into the rails)
Do you find this idea interesting? Is it worth creating a PR?