From cfa4f10a72f942d7bc974dc48470e97ba2789e99 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 23 Jun 2007 00:11:44 +0000 Subject: [PATCH] Show the most recent entries first when viewing a user's diary. --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 66669f95a..63f6bd389 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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 -- 2.39.5