comparison config/application.rb @ 73:e9a6019a34ea

Avoid using constant. Use global instead =D
author nanaya <me@myconan.net>
date Fri, 13 May 2016 04:52:20 +0900
parents 257910c60eb3
children d5a0d66ee457
comparison
equal deleted inserted replaced
72:257910c60eb3 73:e9a6019a34ea
32 32
33 # this isn't actually used but railties checks this variable during boot. 33 # this isn't actually used but railties checks this variable during boot.
34 config.secret_key_base = "herp a derp" 34 config.secret_key_base = "herp a derp"
35 config.session_store :disabled 35 config.session_store :disabled
36 36
37 if CFG[:memcached_servers] 37 if $cfg[:memcached_servers]
38 config.cache_store = :mem_cache_store, CFG[:memcached_servers], { :namespace => "rsstweet" } 38 config.cache_store = :mem_cache_store, $cfg[:memcached_servers], { :namespace => "rsstweet" }
39 end 39 end
40 end 40 end
41 end 41 end