aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-04-30 23:30:02 +0900
committerre4k <re4k@re4k.info>2013-04-30 23:30:02 +0900
commit84a132e63ea44819ba60b09ed6585ac4c7b52f5b (patch)
tree59a9fdfd1b38e1055dffd2dcba0ae799c7984e21 /lib
parent4a8cf370160edb237937141c69c3f9f2e0a2a590 (diff)
downloadaclog-84a132e63ea44819ba60b09ed6585ac4c7b52f5b.tar.gz
not to use Tweet.cached
Diffstat (limited to 'lib')
-rw-r--r--lib/receiver/worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/receiver/worker.rb b/lib/receiver/worker.rb
index 87c8738..baf0afe 100644
--- a/lib/receiver/worker.rb
+++ b/lib/receiver/worker.rb
@@ -175,7 +175,7 @@ class Receiver::Worker < DaemonSpawn::Base
Rails.logger.debug("Receive Favorite(#{@worker_number}): #{msg["user_id"]} => #{msg["tweet_id"]}")
f = Favorite.from_hash(:tweet_id => msg["tweet_id"],
:user_id => msg["user_id"])
- if t = Tweet.cached(msg["tweet_id"])
+ if t = Tweet.find_by(id: msg["tweet_id"])
t.notify_favorite
end
end