From 733a8642dd2b5e9105c25786abeae2f4d6132cb7 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 21 Jul 2019 19:19:14 +1200 Subject: [PATCH] rubocop lint --- app/controllers/conversations_controller.rb | 36 ++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/app/controllers/conversations_controller.rb b/app/controllers/conversations_controller.rb index 3b998c1dc..d3d6d43f5 100644 --- a/app/controllers/conversations_controller.rb +++ b/app/controllers/conversations_controller.rb @@ -23,20 +23,20 @@ class ConversationsController < ApplicationController end def update - # @conversation.untrash(@actor) if params[:untrash].present? + # @conversation.untrash(@actor) if params[:untrash].present? - # if params[:reply_all].present? - # last_receipt = mailbox.receipts_for(@conversation).last - # @receipt = @actor.reply_to_all(last_receipt, params[:body]) - # end + # if params[:reply_all].present? + # last_receipt = mailbox.receipts_for(@conversation).last + # @receipt = @actor.reply_to_all(last_receipt, params[:body]) + # end - # @receipts = if box.eql? 'trash' - # mailbox.receipts_for(@conversation).trash - # else - # mailbox.receipts_for(@conversation).not_trash - # end - # redirect_to action: :show - # @receipts.mark_as_read + # @receipts = if box.eql? 'trash' + # mailbox.receipts_for(@conversation).trash + # else + # mailbox.receipts_for(@conversation).not_trash + # end + # redirect_to action: :show + # @receipts.mark_as_read end def destroy @@ -53,14 +53,14 @@ class ConversationsController < ApplicationController def set_box @boxes = { - 'inbox'=> mailbox.inbox.size, - 'sent'=> mailbox.sentbox.size, - 'trash'=> mailbox.trash.size + 'inbox' => mailbox.inbox.size, + 'sent' => mailbox.sentbox.size, + 'trash' => mailbox.trash.size } @box = if params[:box].blank? || !@boxes.keys.include?(params[:box]) - 'inbox' - else - params[:box] + 'inbox' + else + params[:box] end end