Mercurial > rsstweet
comparison app/models/tweet.rb @ 142:2d873f57f424
Forgot about this one
author | nanaya <me@nanaya.pro> |
---|---|
date | Wed, 13 Dec 2017 04:57:04 +0900 |
parents | 88d7a7714d4e |
children | 8a858aec1905 |
comparison
equal
deleted
inserted
replaced
141:88d7a7714d4e | 142:2d873f57f424 |
---|---|
48 @user ||= | 48 @user ||= |
49 if timeline.any? | 49 if timeline.any? |
50 timeline.first.user | 50 timeline.first.user |
51 else | 51 else |
52 Rails.cache.fetch({ :user => @twitter_id }, :expires_in => cache_expires_time) do | 52 Rails.cache.fetch({ :user => @twitter_id }, :expires_in => cache_expires_time) do |
53 @client.user(@twitter_id) | 53 client.user(@twitter_id) |
54 end | 54 end |
55 end | 55 end |
56 end | 56 end |
57 | 57 |
58 def client | 58 def client |