#977: update ActivityFeed#default_scope
This commit is contained in:
parent
b8b238e876
commit
dc5af30a9a
|
@ -9,7 +9,7 @@ class ActivityFeed < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
serialize :data
|
serialize :data
|
||||||
|
|
||||||
default_scope order('created_at DESC')
|
default_scope order("#{table_name}.created_at DESC")
|
||||||
scope :outdated, offset(100)
|
scope :outdated, offset(100)
|
||||||
|
|
||||||
self.per_page = 10
|
self.per_page = 10
|
||||||
|
|
Loading…
Reference in New Issue