Commit fda93ec08c91f65e5efe7f0aa52e0d63c2ac741e
1 parent
2f72a88d
Exists in
master
and in
29 other branches
ActionItem1049: sorting posts by id too
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/blog.rb
1 | 1 | class Blog < Folder |
2 | 2 | |
3 | - has_many :posts, :class_name => 'Article', :foreign_key => 'parent_id', :source => :children, :conditions => [ 'type != ?', 'RssFeed' ], :order => 'published_at DESC' | |
3 | + has_many :posts, :class_name => 'Article', :foreign_key => 'parent_id', :source => :children, :conditions => [ 'type != ?', 'RssFeed' ], :order => 'published_at DESC, id DESC' | |
4 | 4 | |
5 | 5 | attr_accessor :feed_attrs |
6 | 6 | attr_accessor :filter | ... | ... |