From: Tom Hughes Date: Sat, 23 Jun 2007 00:11:44 +0000 (+0000) Subject: Show the most recent entries first when viewing a user's diary. X-Git-Tag: live~8342 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cfa4f10a72f942d7bc974dc48470e97ba2789e99 Show the most recent entries first when viewing a user's diary. --- 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