method
ensure_proper_type
ensure_proper_type()
private
Sets the attribute used for single table inheritance to this class name if this is not the ActiveRecord::Base descendent. Considering the hierarchy Reply < Message < ActiveRecord::Base, this makes it possible to do Reply.new without having to set Reply = "Reply" yourself. No such attribute would be set for objects of the Message class in that example.


