app/controllers/mailbox_controller.rb in sufia-3.2.1 vs app/controllers/mailbox_controller.rb in sufia-3.3.0

- old
+ new

@@ -1,11 +1,10 @@ class MailboxController < ApplicationController before_filter :authenticate_user! def index if user_signed_in? - inbox = current_user.mailbox.inbox - @messages = inbox.all + @messages = current_user.mailbox.inbox current_user.mark_as_read @messages else @messages =[] end end