Storing environment.rb settings in the database

Has anyone accomplished storing settings that would normally go in
environment.rb into the database?

For instance, I’d like it if I could specify my ActionMailer properties
from
a web UI admin panel

ActionMailer::Base.server_settings = {
:address => “mail.server.here”,
:port => 25,
:domain => “somewhere.com”,
:authentication => :login,
:user_name => “[email protected]”,
:password => “xxxxx”,
}

Stuff like address, domain, user_name, password…

Ideas?

Check out the Typo source. They store settings in the DB. Lots of good stuff in there. </answer

-Sean