projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c19810
)
Show the most recent entries first when viewing a user's diary.
author
Tom Hughes
<tom@compton.nu>
Sat, 23 Jun 2007 00:11:44 +0000
(
00:11
+0000)
committer
Tom Hughes
<tom@compton.nu>
Sat, 23 Jun 2007 00:11:44 +0000
(
00:11
+0000)
app/models/user.rb
patch
|
blob
|
history
diff --git
a/app/models/user.rb
b/app/models/user.rb
index 66669f95a084c67509a45f22208c29a78111a927..63f6bd38989876d9d7f5c790a87b7aa9e14c05bf 100644
(file)
--- 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