diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-04-13 01:06:58 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-04-13 01:06:58 +0400 |
commit | 8c0dcdde08faa5bb11637ff73e6bfb6fdda2c9c2 (patch) | |
tree | c5cfb5aa6e91282b45689cc85de675243787a855 | |
parent | 363ef2c2760cc7860b6e282738d5e89040c25fbe (diff) |
Notifications should be sorted by updated_at
-rw-r--r-- | app/controllers/notifications_controller.rb | 2 |
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 |