I discovered that you can add these modules under /lib with constants in
them and call these constants like so :
module AdminConstants
email ='admin@test.com'
phone ="123456789"
end
and then access them using AdminConstants::email
sometimes I can put in a require "adminConstants" in order to access
them. I am thinknig of putting them all over the place. Whereever there
is any value hardcoded. Can I use this in development.rb?
How about if I wanted different set of constants for different
environments?
like x=1;y=2 in development but x=2,y=3 in production?
Can I have the right files load during startup? Is it possible to
initialize the constants in the lib modules with values from the
database?