From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 13:44:04 +0000 (+0000) Subject: code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesArou... X-Git-Tag: 4.1.0~279 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26db7fa6bf0d07709d62fe27fcf87212395c13f0;p=redmine.git code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesAroundAccessModifier in app/controllers/messages_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18824 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c8b349f83..2931df7c8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -18,7 +18,6 @@ Bundler/OrderedGems: # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: Exclude: - - 'app/controllers/messages_controller.rb' - 'app/controllers/timelog_controller.rb' - 'app/controllers/wiki_controller.rb' - 'app/models/role.rb' @@ -98,7 +97,6 @@ Layout/EmptyLines: # SupportedStyles: around, only_before Layout/EmptyLinesAroundAccessModifier: Exclude: - - 'app/controllers/messages_controller.rb' - 'app/controllers/previews_controller.rb' - 'app/controllers/timelog_controller.rb' - 'config/initializers/10-patches.rb' diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index b6bcb2839..bbc6a35d4 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -132,7 +132,8 @@ class MessagesController < ApplicationController render :partial => 'common/preview' end -private + private + def find_message return unless find_board @message = @board.messages.includes(:parent).find(params[:id])