Dynamic Loading of Configuration From Database

Hi All,
I am looking at dynamically loading configuration of rails app depending
on a flag that is being passed to the app through the HTTP header. The
config is stored in a database table. Depending on the value received in
the header, a model will make a call to the db and load up the config
into the session. Is this best practice for loading config from db? Does
anyone have a suggestion for doing this a better way?

Thanks in advance,

John

More detail, please. You seem to have a strange situation.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs