Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-04-13 01:06:58 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-04-13 01:06:58 +0400
commit8c0dcdde08faa5bb11637ff73e6bfb6fdda2c9c2 (patch)
treec5cfb5aa6e91282b45689cc85de675243787a855
parent363ef2c2760cc7860b6e282738d5e89040c25fbe (diff)
Notifications should be sorted by updated_at
-rw-r--r--app/controllers/notifications_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb
index 1d6963d26..84c30ab06 100644
--- a/app/controllers/notifications_controller.rb
+++ b/app/controllers/notifications_controller.rb
@@ -19,7 +19,7 @@ class NotificationsController < ApplicationController
def index
@notifications = Notification.find(:all, :conditions => {:recipient_id => current_user.id},
- :order => 'created_at desc', :include => [:target, {:actors => :profile}]).paginate :page => params[:page], :per_page => 25
+ :order => 'updated_at desc', :include => [:target, {:actors => :profile}]).paginate :page => params[:page], :per_page => 25
@group_days = @notifications.group_by{|note| I18n.l(note.updated_at, :format => I18n.t('date.formats.fullmonth_day')) }
respond_with @notifications
end