Hi,
I’ve defined a constant environment.rb called RSS_EXPIRE_TIME. This
controls after how many minutes the local cache of some RSS feed should
expire. In development I would like the cache to never expire so I set
it to 0 in environments/development.rb
Ofcourse I get a warning in Webrick
./script/…/config/…/config/environment.rb:60: warning: already
initialized constant RSS_EXPIRE_TIME
I can use a global variable but a constant really seems the best fit for
a configuration setting. Should I just pull it out of my default
environment file and stick an individual entry in each environment file
or is there a better way?
Cheers,
Jeroen