Mercurial > rsstweet
changeset 30:205c0b5d9f44
Whoops, expires_in accidentally as key name.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 18 Sep 2014 09:29:07 +0900 |
parents | cf5c379d133f |
children | 0c877dfa9646 |
files | app/models/tweet.rb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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