diff --git a/app/controllers/inbox_controller.rb b/app/controllers/inbox_controller.rb index accc8054..03309976 100644 --- a/app/controllers/inbox_controller.rb +++ b/app/controllers/inbox_controller.rb @@ -11,8 +11,8 @@ class InboxController < ApplicationController @author = true @target_user = User.find_by_screen_name params[:author] @inbox_author = current_user.inboxes.joins(:question) - .where(questions: { user_id: @target_user.id, author_is_anonymous: false }) - .paginate(page: params[:page]) + .where(questions: { user_id: @target_user.id, author_is_anonymous: false }) + .paginate(page: params[:page]) @inbox_author_count = current_user.inboxes.joins(:question) .where(questions: { user_id: @target_user.id, author_is_anonymous: false }) .count