app/models/mailbox.rb in mailboxer-0.2.4 vs app/models/mailbox.rb in mailboxer-0.2.5
- old
+ new
@@ -7,10 +7,10 @@
end
#Returns the notifications for the messageable
def notifications(options = {})
#:type => nil is a hack not to give Messages as Notifications
- return Notification.recipient(@messageable).where(:type => nil)
+ return Notification.recipient(@messageable).where(:type => nil).order("notifications.created_at DESC")
end
#Returns the conversations for the messageable
#
#Options