Our app currently has some constants set in the environment.rb file
Object.const_set “ProductionDomain”, “mydomain.com” and some other
related constants that are based off of this initial constant.
We are now going to be offering a .fr domain in addition to .com so I
to make these constants dynamic based on which TLD a person may be on.
My thought was that maybe I should move these constants into their own
in the initializers folder and can then check whether the user is on the
.com TLD or .fr
Is there a better way to handle this? I couldn’t find a way to do it in
environment.rb file so I’m thinking this other approach may be the way
We are on Rails 2.3.14, so any options need to be compatible with that