diff config/initializers/twitter_tweet_cache_key.rb @ 96:148d8c17cb79

Less monkeypatching rails, more monkeypatching tweet
author nanaya <me@myconan.net>
date Thu, 28 Jul 2016 04:25:47 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/config/initializers/twitter_tweet_cache_key.rb	Thu Jul 28 04:25:47 2016 +0900
@@ -0,0 +1,5 @@
+class Twitter::Tweet
+  def cache_key
+    "twitter/tweet/#{id}"
+  end
+end