Mercurial > rsstweet
diff app/models/tweet.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 | 37356e98b784 |
children | 0c023d35cd80 |
line wrap: on
line diff
--- a/app/models/tweet.rb Fri May 13 04:32:21 2016 +0900 +++ b/app/models/tweet.rb Fri May 13 04:52:20 2016 +0900 @@ -19,7 +19,7 @@ def initialize(twitter_id) @client = Twitter::REST::Client.new do |config| - CFG[:twitter].each do |cfg_key, cfg_value| + $cfg[:twitter].each do |cfg_key, cfg_value| config.public_send("#{cfg_key}=", cfg_value) end end