aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/favorite.rb
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-04-23 22:24:14 +0900
committerre4k <re4k@re4k.info>2013-04-23 22:24:14 +0900
commitd921d4f494a74570069e75b605a6184b635e560c (patch)
treeec6f490b5cd99c96a77e943ef0af1d260194786c /app/models/favorite.rb
parent6538a2370b042a921568e0c7520cd4b8c0eb82eb (diff)
downloadaclog-d921d4f494a74570069e75b605a6184b635e560c.tar.gz
change counter_culture gem to normal counter_cache temporarily (it doesn't count up when test?)
Diffstat (limited to 'app/models/favorite.rb')
-rw-r--r--app/models/favorite.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/favorite.rb b/app/models/favorite.rb
index df894fc..751c486 100644
--- a/app/models/favorite.rb
+++ b/app/models/favorite.rb
@@ -1,6 +1,6 @@
class Favorite < ActiveRecord::Base
- belongs_to :tweet
- counter_culture :tweet
+ belongs_to :tweet, :counter_cache => true
+# counter_culture :tweet
belongs_to :user
scope :order_by_id, -> do