From f4522aeba7069d8cb9c14b0a0b7084a377ffafe7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 15:54:00 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/AccessModifierIndentation in app/controllers/wiki_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18831 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 7 ------- app/controllers/wiki_controller.rb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 90ce2e23a..08218813f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -13,13 +13,6 @@ Bundler/OrderedGems: Exclude: - 'Gemfile' -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: outdent, indent -Layout/AccessModifierIndentation: - Exclude: - - 'app/controllers/wiki_controller.rb' - # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: with_first_argument, with_fixed_indentation diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 4c96221df..423f94f98 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -336,7 +336,7 @@ class WikiController < ApplicationController redirect_to :action => 'show', :id => @page.title, :project_id => @project end -private + private def find_wiki @project = Project.find(params[:project_id]) -- 2.39.5