#977: update ActivityFeed#default_scope

This commit is contained in:
Vokhmin Alexey V 2013-02-28 19:30:51 +04:00
parent b8b238e876
commit dc5af30a9a
1 changed files with 1 additions and 1 deletions

View File

@ -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