Forum: Ruby on Rails Can I configure the type value for STI?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Per V. (Guest)
on 2007-01-19 17:31
(Received via mailing list)
I would like to ask if there is a way to make a mapping from the type
column value to the Ruby class name?

It's not a big deal, I guess. But It bothers me somewhat that Rails
puts the name of the subclasses in the database when using STI. In my
opinion it ties the database a little too close to the program
This topic is locked and can not be replied to.