Skip to content

Commit

Permalink
Merge pull request #211 from projecthydra/fix_mailbox_deprecation
Browse files Browse the repository at this point in the history
Fix deprecation on MailboxController
  • Loading branch information
jeremyf committed Sep 25, 2013
2 parents 8c2b9c7 + 52d95bd commit bcf1b65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/mailbox_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ class MailboxController < ApplicationController

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 =[]
Expand Down

0 comments on commit bcf1b65

Please sign in to comment.