diff 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
line wrap: on
line diff
--- a/config/application.rb	Fri May 13 04:32:21 2016 +0900
+++ b/config/application.rb	Fri May 13 04:52:20 2016 +0900
@@ -34,8 +34,8 @@
     config.secret_key_base = "herp a derp"
     config.session_store :disabled
 
-    if CFG[:memcached_servers]
-      config.cache_store = :mem_cache_store, CFG[:memcached_servers], { :namespace => "rsstweet" }
+    if $cfg[:memcached_servers]
+      config.cache_store = :mem_cache_store, $cfg[:memcached_servers], { :namespace => "rsstweet" }
     end
   end
 end