Show the most recent entries first when viewing a user's diary.
authorTom Hughes <tom@compton.nu>
Sat, 23 Jun 2007 00:11:44 +0000 (00:11 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 23 Jun 2007 00:11:44 +0000 (00:11 +0000)
app/models/user.rb

index 66669f95a084c67509a45f22208c29a78111a927..63f6bd38989876d9d7f5c790a87b7aa9e14c05bf 100644 (file)
@@ -3,7 +3,7 @@ class User < ActiveRecord::Base
   require 'digest/md5'
 
   has_many :traces
-  has_many :diary_entries
+  has_many :diary_entries, :order => 'created_at DESC'
   has_many :messages, :foreign_key => :to_user_id
   has_many :friends