diff app/models/tweet.rb @ 30:205c0b5d9f44

Whoops, expires_in accidentally as key name.
author edogawaconan <me@myconan.net>
date Thu, 18 Sep 2014 09:29:07 +0900
parents 03f904c070f7
children e5082c4c234d
line wrap: on
line diff
--- a/app/models/tweet.rb	Mon Sep 15 17:03:36 2014 +0900
+++ b/app/models/tweet.rb	Thu Sep 18 09:29:07 2014 +0900
@@ -8,7 +8,7 @@
 
   def timeline
     @timeline ||=
-      Rails.cache.fetch :timeline => @twitter_id, :expires_in => 5.minutes do
+      Rails.cache.fetch({ :timeline => @twitter_id }, :expires_in => 5.minutes) do
         @client.user_timeline(@twitter_id)
       end
   end