From dc5af30a9ac6a865254399b971b32af76f503da5 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 28 Feb 2013 19:30:51 +0400 Subject: [PATCH] #977: update ActivityFeed#default_scope --- app/models/activity_feed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/activity_feed.rb b/app/models/activity_feed.rb index aec51f088..a4ac3a759 100644 --- a/app/models/activity_feed.rb +++ b/app/models/activity_feed.rb @@ -9,7 +9,7 @@ class ActivityFeed < ActiveRecord::Base belongs_to :user serialize :data - default_scope order('created_at DESC') + default_scope order("#{table_name}.created_at DESC") scope :outdated, offset(100) self.per_page = 10