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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1caf2caa2872edcb15be0e52fd442bab?d=identicon&s=25 Per Velschow (Guest)
on 2007-01-19 16: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
structure.
This topic is locked and can not be replied to.