search for: some_config

Displaying 1 result from an estimated 1 matches for "some_config".

Did you mean: mode_config
2006 Jul 28
1
How to set environment specific config variables DRY-ly
Sorry, search is down on the forum, so I don''t know if this has been posted elsewhere. I have some config variables that I want to have set in all environments, and overridden in production. What I want to do is put this in my config/environment.rb SOME_CONFIG = 555 And then override it in config/environments/production.rb as: SOME_CONFIG = 333 Problem is, using constants I can''t redefine them, so it gives an error. Any suggestions for a better solution? Copying the config var to all the environments doesn''t seem very DRY. Maybe t...