Fix printing abstract classes in ActiveRecord 3