Mercurial > rsstweet
diff config/config_init.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 | e5082c4c234d |
children | 0c023d35cd80 |
line wrap: on
line diff
--- a/config/config_init.rb Fri May 13 04:32:21 2016 +0900 +++ b/config/config_init.rb Fri May 13 04:52:20 2016 +0900 @@ -1,4 +1,4 @@ -CFG = { +$cfg = { :twitter => { :consumer_key => ENV["RT_CONSUMER_KEY"], :consumer_secret => ENV["RT_CONSUMER_SECRET"], @@ -11,3 +11,5 @@ config_local = File.expand_path("../config_local_#{Rails.env}.rb", __FILE__) require config_local if File.exist? config_local + +$cfg.freeze