summaryrefslogtreecommitdiffstats
path: root/app/views/my/blocks/_documents.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my/blocks/_documents.rhtml')
-rw-r--r--app/views/my/blocks/_documents.rhtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/my/blocks/_documents.rhtml b/app/views/my/blocks/_documents.rhtml
index 8e7f6bc50..eb8c16a58 100644
--- a/app/views/my/blocks/_documents.rhtml
+++ b/app/views/my/blocks/_documents.rhtml
@@ -3,5 +3,6 @@
<%= render(:partial => 'documents/document',
:collection => Document.find(:all,
:limit => 10,
+ :order => 'documents.created_on DESC',
:conditions => "documents.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
:include => [:project])) unless @user.projects.empty? %> \ No newline at end of file